Sunday, November 30, 2025

Ought to We Even Have :closed? | CSS-Methods


For the previous few months, I’ve been writing plenty of entries on pseudo-selectors in CSS, like ::picker() or ::checkmark. And, within the course of, I observed I have a tendency to make use of the :open pseudo-selector so much in my examples — and in my work normally.

Borrowing phrases from the superb creator of the :open entry within the Almanac:

The CSS :open pseudo-selector targets components that assist open and closed states — such because the 

 and