Re: [csswg-drafts] [css-overflow] Clarify what rect clips the root element with overflow:hidden on mobile environments with dynamic toolbar (#5646)

Is the questionable behavior that as the URL bar hides and the red div starts to come into view, it's technically outside the clip rect of the root element but we still see it?

If so, (speaking for Blink) the root element clipping is delegated to the "viewport" and is special in that it's adjusted by the URL bar. We expand the clipping rect but don't expand the ICB (so that we don't change the clientHeight or reflow the page). Without the special case of expanding the clipping rect I think any page on which you can scroll would clip out the bottom of the page as the URL bar became hidden.

This has historically been an area not covered by specs but I wouldn't be opposed to clarifying the exact and expected behavior.

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


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

Received on Tuesday, 8 June 2021 13:16:00 UTC