-
Notifications
You must be signed in to change notification settings - Fork 719
[css-anchor-position] The "acceptable anchor" algo seems broken #11030
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
See also #11029 |
It's really unfortunate that the term |
No, we don't want to distinguish abspos vs fixpos in that way, because a fixpos can act like an abspos given certain ancestor styles. What you actually care about is whether the containing block comes from the viewport, or something else, and that's the distinction I'm making in the algo. That said, let me look at your actual feedback. ^_^
But it's not about flat tree - in both of those cases, the flat tree is identical to the DOM tree, because there's no shadows involved. I'll just need to do some finessing about ancestors in the abspos containing block tree. |
…e abspos' text from the next bullet point to cover similar cases here. #11030.
All right, (2) is solved by restoring the text I'd accidentally deleted earlier, and restored when fixing #11170. I solved (1) by just copying the same text over, as the exact same condition applies. |
The acceptable anchor text contains the following:
I don't think some of these cases are correct.
For example:
seems to say that this should work:
And:
seems to say that this should work:
In other words, in these two cases we sometimes still require that "
possible anchor
is earlier in flat tree order thanpositioned el
."This seems...hard to spec.
The text was updated successfully, but these errors were encountered: