Re: [csswg-drafts] [css-contain-2] Clarify what happens with scrollbars on elements that 'skip their contents' (#5868)

Actually, having read #5869, I'd like to back away from my previous comment. With a `visibility: hidden` behavior, size and position of the element can still be queried by script and return sensible answers (potentially lazily computed), while a `display: none` would destroy the invisible layout.

Instead, we could go with something like:
> When an element skips its contents […], no scrollbar or other scrolling mechanism is shown regardless of the value of the `overflow` property and of whether the content would overflow.


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


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

Received on Sunday, 18 September 2022 00:45:30 UTC