E47B [css-anchor-position-1] Clarify interaction of anchors and positioned elements with content-visibility · Issue #10184 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-anchor-position-1] Clarify interaction of anchors and positioned elements with content-visibility #10184

@vmpstr

Description

@vmpstr

In #10040 we've resolved that

... if a positioned element is "relevant to the user", any element it's anchoring to remains "relevant to the user" as well.

This particular phrasing poses some implementation difficulties, since we don't typically track whether an arbitrary element is relevant to the user. We only tend to do that in the context of its effect on content-visibility.

I think this should say the following:

if a positioned element is not skipped, any element it's anchoring to remains "relevant to the user".

since being skipped is something that is imposed on the element by content-visibility. This does mean that if the anchor and the positioned elements are both off-screen, but the positioned element is not under content-visibility, then the anchor will remain relevant to the user. I think that's fine though.

As an aside, I presume that if the positioned element is display: none or something, then it's not actually a positioned element and thus is not anchoring to the anchor

/cc @tabatkins @progers @mfreed7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0