Re: [csswg-drafts] [css-values] Use of 100vw is causing pointless horizontal scrollbars on some websites (#6026)

> Now comes the part where authors might get tripped up: if they then size something inside that <div> to be 50vw, they will end up with a horizontal scrollbar again, as the computed width is 492px and not the leftover 476px.

I'm confused. That would happen *regardless* - if the 50vw-wide div has scrollbars, its inner width is going to be less than 50vw no matter how we define vw.

> A solution with an envvar would allow fixing all those cases, but puts the burden on the author to take it into account.

Also not sure what you mean here. How would an env() make this case work?

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


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

Received on Thursday, 30 November 2023 23:06:01 UTC