Nothing Special   »   [go: up one dir, main page]

[csswg-drafts] [cssom-view] The definitions of innerWidth and innerHeight are ambiguous (#9065)

simevidas has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] The definitions of innerWidth and innerHeight are ambiguous ==
Link to section: https://drafts.csswg.org/cssom-view/#dom-window-innerwidth

> The innerWidth attribute must return the viewport width including the size of a rendered scroll bar (if any), or zero if there is no viewport.

The word *including* is ambiguous and can mean

* which includes
* as well as, plus

So the quoted definition can be interpreted in two ways:

1. `innerWidth` = viewport width, which includes the size of the scrollbar
2. `innerWidth` = viewport width + size of scrollbar (viewport width does not include the size of the scrollbar)

Which one is it? And consider replacing *including* with a clearer word.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9065 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 14 July 2023 02:11:14 UTC