[csswg-drafts] [css-values][css-contain] Can we account for scrollbars on containers when sizing 100cq*? (#10043)

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

== [css-values][css-contain] Can we account for scrollbars on containers when sizing 100cq*?  ==
In #6026 we resolved to have viewport units account for scrollbars, when `overflow:scroll` or `scrollbar-gutters:stable` is set on the root (propagating directly to viewport, not from `body`). 

This will also work for `cq*` units that are relative to the root (no container defined), since they default to the equivalent `sv*` units. However, authors are likely to have the same issue on non-root containers. 

Demo: https://codepen.io/miriamsuzanne/pen/poBjQxm?editors=1100

Would it make sense to apply our above resolution to `cq*` units anywhere that the container in question has either `overflow:scroll` or `scrollbar-gutters:stable` set?

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


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

Received on Thursday, 7 March 2024 18:19:36 UTC