The CSS :open Pseudo-Class
Styling the open state of `<details>`, `<dialog>`, `<select>` and picker inputs with `:open`, and how it differs from `[open]`.
Content tagged open-pseudo-class
Tutorial:The
:openPseudo-Class for<details>,<dialog>and<select>Style anything that opens, selects included, with one pseudo-class.Style the open state of <details>, <dialog> and <select> with the CSS :open pseudo-class. Compare it with [open], :popover-open and :modal, with fallbacks.