Skip to content

[css-anchor-position] Recent change in acceptable anchor element seems incomplete #12830

@dshin-moz

Description

@dshin-moz

With commit 184472e, as commented here:

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.

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