Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CSS Custom Properties for Cascading Variables Level 1

Document status: seed. Canonical source.

Summary

A custom property is a declaration whose name starts with --. Its value is a token sequence kept unparsed until substitution, and var(--name) substitutes the computed value of another custom property, with an optional fallback. Values cascade and inherit like other properties, so the effective value depends on the element and the selectors that match it.

Evidence

Seed record. The definitions of custom properties, var() substitution, guaranteed-invalid values for dependency cycles and inheritance have not yet been checked against section locators of the cited snapshot.

NUIF relevance

nuif-css-tokens-0 interprets only declarations inside exact top-level selectors that a profile maps to modes, and only a small typed value grammar. Everything else in the stylesheet stays byte-exact and unmapped. Mapping a selector to a mode is an adapter declaration, not a cascade evaluation.