Re: [csswg-drafts] [selectors][css-position-4] `:modal` pseudo-class needs to account for top layer exit animations (#13594)

Should this issue be against HTML? The issue afaict is here: https://html.spec.whatwg.org/#close-the-dialog

> 6. If [is modal](https://html.spec.whatwg.org/#is-modal) of subject is true, then [request an element to be removed from the top layer](https://drafts.csswg.org/css-position-4/#request-an-element-to-be-removed-from-the-top-layer) given subject.
>
> 7. Let wasModal be the value of subject's [is modal](https://html.spec.whatwg.org/#is-modal) flag.
>
> 8. Set [is modal](https://html.spec.whatwg.org/#is-modal) of subject to false.

At no point there's any waiting for the animation to end between 6 and 8.

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


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

Received on Tuesday, 3 March 2026 23:51:52 UTC