Re: [csswg-drafts] [css-contain][css-anchor-position-1] Should size/layout containment also contain anchor names? (#9349)

Layout containment seems like an obvious yes - if we didn't have it contain anchor names, it would defeat the optimizations that layout containment is meant to enable. This is similar to how layout containment prevents you from seeing baselines inside the content.

Size containment seems like an obvious no - size containment just breaks parent/child layout cycles, but doesn't let us actually skip any meaningful work in the general case. Note that size containment *specifically* calls out baseline alignment as something it *does not* stop.

So I suggest we add layout containment to the list of things that scope anchor names, but do not add size containment.

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


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

Received on Monday, 26 February 2024 21:15:40 UTC