Re: [csswg-drafts] [css-position-4] Consider removing the overlay property (#13200)

In the issue description I said that this would break popovers transitioning from the top layer to in-document block flow and that this isn't a case that anyone would actually do, but my mind has been changed by these examples:
- https://github.com/whatwg/html/issues/11694#issuecomment-4080619203
- https://issues.chromium.org/issues/393947100

One idea I had to address this is to check whether there is an active display animation running when considering to remove an element from the top layer. If there is an animation/transition running, then keep it in the top layer. Otherwise, remove it from the top layer. However, I'm not sure if this would work in the case that the popover is going from the top layer to in-document flow, since display could just be set to block the entire time and might not actually animate?

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


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

Received on Wednesday, 18 March 2026 18:52:30 UTC