Re: [csswg-drafts] [css-overflow-4] Effect of scrollbar-gutter on viewport (#8099)

RE Chrome vs “The reported value through `document.documentElement.clientWidth` is wrong, though.”

This is [as per current spec](https://www.w3.org/TR/cssom-view-1/#dom-element-clientwidth):

> If the element is the root element and the element’s node document is not in quirks mode […] return the viewport width/height excluding the size of a rendered scroll bar (if any).

I say this feels wrong here because the visualised ICB _(red dashed outline)_ does not match the reported values. Therefore I would like to suggest to adjust this definition so that it also caters for reserved scroll bar space.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8099#issuecomment-1321831143 using your GitHub account


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

Received on Monday, 21 November 2022 10:25:55 UTC