Re: [csswg-drafts] [css-contain-3][css-anchor-position-1] Containment makes it difficult to use anchor positioning with container queries (#10040)

I agree that it's important to support anchors across container query boundaries, and also across every other kind of layout boundary such as `content-visibility`, for onscreen content. In addition, I don't think there is a big performance problem with excluding `anchor-name` from `style` and `layout` containment, except as it relates to [skipped](https://drafts.csswg.org/css-contain-2/#skips-its-contents) `content-visibility:auto` subtrees.

So what I propose is the following:

* Exclude `anchor-name` from style and layout containment (reverting the resolution in #9349 last week)
* Specify that `anchor-name` cannot cross skipped `content-visibility: auto` subtree boundaries

Agenda+ with that proposed resolution.

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


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

Received on Wednesday, 13 March 2024 00:07:41 UTC