[csswg-drafts] [css-anchor-position] Recent change in acceptable anchor element seems incomplete (#12830)

dshin-moz has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-anchor-position] Recent change in acceptable anchor element seems incomplete ==
With commit 184472e, as commented [here](https://github.com/w3c/csswg-drafts/commit/184472ea2e2dc0bec28ee10849a13777ac02f741#r165727816):

I believe the new edit is missing the blurb about the possible anchor element's penultimate containing block, that it should either be statically-positioned, or absolutely-positioned and occurring after the positioned element.

As is, given:

```
<div id=abs-cb>
  <div id=positioned-el></div>
  <div id=penultimate-abspos>
    <div id=anchor></div>
  </div>
</div>
``` 

#anchor isn't absolutely positioned, and its containing block, #penultimate-abspos is a descendant of #abs-cb, which is the abspos containing block of #positioned-el, satisfying this condition. However, it's laid out after #positioned-el.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12830 using your GitHub account


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

Received on Thursday, 18 September 2025 12:59:55 UTC