🏠 New in Low Baseline Support: :state()
May 17, 2024
The :state()
CSS pseudo-class matches custom elements based on their custom state, set through the ElementInternals.states
API.
Source features
api.CustomStateSet
[mdn]api.CustomStateSet.@@iterator
[mdn]api.CustomStateSet.add
[mdn]api.CustomStateSet.clear
[mdn]api.CustomStateSet.delete
[mdn]api.CustomStateSet.entries
[mdn]api.CustomStateSet.forEach
[mdn]api.CustomStateSet.has
[mdn]api.CustomStateSet.keys
[mdn]api.CustomStateSet.size
[mdn]api.CustomStateSet.values
[mdn]api.ElementInternals.states
[mdn]css.selectors.state
[mdn]