Re: [csswg-drafts] [css-overflow-4] effect of gutters on viewport units (#5254)

> it would seem much preferable for the viewport percentage units to be relative to the ICB as reduced by the always-present gutter

It would definitely be preferable, but I suspect it wouldn’t be good enough. In a browser with classic scrollbars, if the page does not scroll, an element with a width of `100vw` would not go all the way to the right edge of the viewport. There would be that gap of 15 to 17 pixels for the gutter. If developers don’t like this gap, they won’s use `100vw`, and instead they’ll use whatever solution or hack that gives them the full viewport width. 

In browsers with classic scrollbars, the viewport width is dynamic; it changes when the scrollbar appears or disappears. Developers want to be able to make an element full width so that it’s as wide as the viewport. That’s a widely known use-case. 

The CSS Working Group needs to decide if this is a valid use-case. If it is, then they should focus on creating a solution for it. 

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


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

Received on Tuesday, 5 September 2023 05:45:00 UTC