Skip to content

[css-scroll-anchoring] Does anchoring work on elements, or boxes? #13564

@smfr

Description

@smfr

The anchor node algorithm is written in terms of nodes and elements, but it seems that UAs implement in terms of layout boxes.

This is visible when style changes cause layout boxes to be destroyed and re-created; browsers don't scroll anchor if the anchor's subtree temporarily becomes display: none.

Test case at https://codepen.io/smfr/pen/JoRoKZQ

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