🏠 New in High Baseline Support: :modal
March 2, 2025
The :modal pseudo-class selects elements that put other elements into a non-interactive state, such as a fullscreen element or a <dialog> element used with showModal().
Source features
css.selectors.modal[mdn]