Skip to content

[css-anchor-1] Can't anchor one popover to another #8165

Closed
@xiaochengh

Description

@xiaochengh

Right now we can't anchor one popover to another, because:

  • Popovers are in the document's top layer, which means they are absolutely positioned with either viewport or ICB as the containing block
  • Then none of them can be an acceptable anchor for another

This means we can't support some very important use cases like nested popover menus.

Not sure exactly which spec to fix (top level, popover or CSS anchor). One possible idea to fix it in CSS is: maybe we can take tree ordering into consideration? If two abspos elements are in the same containing block, the second can anchor to the first.

cc @mfreed7

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