Re: [csswg-drafts] [css-anchor-position] Add containing block rules to acceptable elements in top layer (#11602)

Apologies for the lack of clarity on this one. My request is that the spec be updated to reflect it as it is implemented in Chromium.

**Current behavior in Chromium:**

Given an element inside a top layer, if it is `position: absolute`, it can not find an anchor on a lower layer, because its containing block is the root element of its layer (the popover, for instance).

Given an element inside a top layer, if it is `position: fixed`, it can find an anchor on a lower layer, because its containing block is the viewport.

Here's a demo using popover-
https://codepen.io/jamessw/pen/KwKJJRJ

And a demo with a popover inside a dialog, again showing that an abspos element is currently unable to find an anchor in a lower layer.

https://codepen.io/jamessw/pen/YPzBBbE

Based on the conversation, am I understanding that this is instead an implementation bug, and the abspos examples should work?

-- 
GitHub Notification of comment by jamesnw
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11602#issuecomment-2776788039 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 3 April 2025 19:57:19 UTC