Open and closed selectors
Limited availability
The :open
and :closed
CSS pseudo-classes match elements that have open and closed states, like <details
, <dialog>
, or <select>
, based on their state.
Learn more
Specifications
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌ Vendor position : positive
- Firefox for Android ❌ Vendor position : positive
- Safari ❌ Vendor position : support
- Safari on iOS ❌ Vendor position : support
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist