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

> As far as detecting support, one approach we could take is adding a new [named feature](https://drafts.csswg.org/css-conditional-5/#support-definition-named-features) to the @supports named-feature() function for detecting support for the new behavior.

Thanks, that sounds great!

> is it that elements transitioning to display:none stay in the top layer during the transition if they were in the top layer at the start of it?

Yes, although I don't know how to detect whether there is a transition active which will end in display:none, so what I've implemented is for the element to stay in the top layer until it is display:none.

> but we'd presumably need to come up with a keyword for that behavior, and make an appropriate tradeoff between being concise and being descriptive.

How about `@supports named-feature(TopLayerExitAnimations)`?

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


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

Received on Thursday, 22 January 2026 15:48:36 UTC