Skip to content

[css-anchor-position] Was changing acceptable element algorithm intentional? #11170

Closed
@anttijk

Description

@anttijk

fe8e40d37faae "Rewrite the ordering conditions on 'acceptable anchor element' to be more explicit and hopefully clearer" actually changed the algorithm somewhat. Specifically in the "different containing blocks" case the tree order of the elements no longer matters. This affects for example

http://wpt.live/css/css-anchor-position/anchor-name-002.html (the first target now gets anchored)
http://wpt.live/css/css-anchor-position/anchor-scroll-002.html (all targets attach to the last anchor)

The commit message indicated that the intention was to clarify the algorithm so I'm wondering if the behavior changes were intentional?

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