web-feature: :state()
The :state() CSS pseudo-class matches custom elements based on their custom state, set through the ElementInternals.states API.
Safari Browser
iOS
17.4
The :state() CSS pseudo-class matches custom elements based on their custom state, set through the ElementInternals.states API.