Web platform features explorer

Open and closed selectors

The :open and :closed CSS pseudo-classes match elements that have open and closed states, like <details, <dialog>, or <select>, based on their state.

Status

Limited availability

MDN documentation

Browser support