- A CSS technique that uses custom properties (CSS variables) to create Boolean-like logic without JavaScript. When a CSS variable contains a space character (
--var: ;), it can be appended to values without changing them, but when it containsinitial(or is undefined), it forces the fallback value to be used. This enables conditional styling, AND/OR logic gates, and state management purely through CSS by toggling between space andinitialvalues. The technique is attributed to Ana Tudor.
This term is sponsored by: your name/company?
- Previous term: SPACE
- Next term: Space-based architecture
- Random term: RPS (webglossary.info/random 🎲)