Closed
Description
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