Re: [csswg-drafts] [css-values-4] Should `dv*` account for `overflow: auto` scrollbars dynamically? (#10059)

> If so, should we adjust the sv* units also?

The problem with that idea:

The new viewport units were introduced to solve the problem of `100vh` being taller than the initial viewport in mobile browsers. A small mobile viewport due to the browser’s expanded UI is different from a small desktop viewport due to the presence of classic scrollbars on the page, so the same `s-` prefixed viewport units cannot represent the small viewport in both cases. If they did, then, for example, using `100svh` to solve a layout issue in mobile browsers would have potentially unwanted side effects in desktop browsers and vice-versa.

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


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

Received on Monday, 11 March 2024 22:29:41 UTC