Re: [csswg-drafts] [css-anchor-1] Issues with position fallback (#8059)

It is still the case that the *size* of the element can't depend on scroll offsets† - its *actual* IMCB for layout purposes is still determined normally, based on the anchor's initial scroll position, so if the element is `align-self: stretch; height: auto;` or whatever, it'll get some possibly-useless size. But if the IMCB only determines its position, not its size, then things should work correctly again.

†: (The scroll offset can determine which fallback styles we're using, which can have an effect on the element's size, but that's not continuous variation like actually having the IMCB depend on the scroll offset would be. It'll just flip between a small set of fallbacks, and we're already okay with that being slightly desynced from composited scrolling; it's much less obvious than having something that's, say, supposed to stretch from a scrollable anchor to the bottom of the screen and always be the correct size to fill that space.)

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


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

Received on Tuesday, 9 April 2024 23:36:59 UTC