CSS Declarative Toggles

Archived:

❌ This feature has been abandoned (at least for now). Our notes are likely out-of-date.

See the Unofficial Draft specification for details.

There are many use-cases that require “toggling” the state of one element by interacting with a different element. Many of these could be described in terms of show/hide states specifically.

Related Notes