-
Notifications
You must be signed in to change notification settings - Fork 716
[css-anchor-position-1] Clarify interaction of anchors and positioned elements with content-visibility #10184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
An edge case is if the positioned element and the anchor are both in the same |
Do you mean the scenario where the anchor element itself has display: none? In that case, the spec says that anchor-name only applies to elements that produce a principle box, and this wouldn't happen with display none. Or do you mean the case where the anchored element has display: none; in which case, is the effect observable either way? |
I'm fine with this rephrasing.
Yup, indeed. Gotta prevent cycles in our collector.
Correct. |
…directly in terms of skipping, rather than making things relevant, as that better maps to the spec concepts. #10184
Okay, text rephrased. Let me know if this works for you, @vmpstr ? |
Looks good. Minor nit:
"who" here is ambiguous: it could be the target anchor element or a positioned element. The rest of the text continues with
Which strongly suggests that we're talking about the positioned element here, since the target anchor element is a descendant of el from the earlier text. So that's why it's a minor nit. |
I think we can close though, and fix up ambiguities as separate editorial changes |
In #10040 we've resolved that
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:
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 undercontent-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
The text was updated successfully, but these errors were encountered: