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

Another thing that should probably be tested and debated is the effect on the visual viewport. Currently, the following two statements are true:

1. The visual viewport either has the same size (in CSS pixels) as the layout viewport, or it’s smaller than the layout viewport. In other words, the visual viewport is never larger than the layout viewport.
2. The visual viewport matches exactly what the user sees at all times.

If the decision is made that `scrollbar-gutter: stable` reduces the width of the layout viewport, then the above two statements can no longer be both true. 

* If the width of the visual viewport is **not** reduced by `scrollbar-gutter`, then the visual viewport will be wider than the layout viewport, which contradicts the fist statement.
* If the width of the visual viewport **is** reduced by `scrollbar-gutter`, then it will no longer include the bright green strip (in the demo above). This contradicts the second statement because the user can see the strip, but it’s outside of the visual viewport.

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


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

Received on Monday, 18 September 2023 01:41:29 UTC