.registered { @private { @property --size { syntax: ""; inherits: false; initial-value: 10px; } @property --size-a, --size-b { syntax: ""; inherits: false; initial-value: 11px; } @property --size-c : 12px; @property --colors type(#): red, blue; @property --empty :; @property --untyped-empty:; @property -- : 1em; --size: 20px; --size-a: 30px; --size-b: 40px; --size-c: 50px; --colors: red, blue; } width: var(--size); height: var(--size-a); min-height: var(--size-b); max-height: var(--size-c); max-width: var(--colors); min-width: var(--empty); border-width: var(--untyped-empty); outline-width: var(--); } .registered-only { @private { @property --untyped: 6px; } color: var(--untyped); } .registered-conditional { @private { @media (min-width: 1000px) { @property --conditional-size : 13px; } --conditional-size: 14px; } width: var(--conditional-size); } @layer parent-layer { .layer-order { @private { @layer private-layer { @property --layer-size : 10px; } } width: var(--layer-size); } } .escaped { @private { @property --\66 oo : 10px; --\66 oo: 20px; } --\66 oo: 30px; width: var(--\66 oo); } .outer-conditional { @media (min-width: 1000px) { @private { @property --outer-conditional-size : 13px; } } @private { --outer-conditional-size: 14px; } width: var(--outer-conditional-size); } .container-registration { container-type: inline-size; @container (width > 10px) { @private { @property --container-size : 10px; --container-size: 20px; } } width: var(--container-size); } .starting-style-registration { @starting-style { @private { @property --starting-size : 10px; } } width: var(--starting-size); } .container-registration-siblings { @container (width > 10px) { @private { @property --sibling-size : 10px; --sibling-size: 20px; } } @private { --sibling-size: 30px; } width: var(--sibling-size); } @media (min-width: 1000px) { .media-above { @private { @property --media-above-size : 1em; } } } .registration-layers { @layer first { @private { @property --layer-size : 1px; } } @layer second { @private { @property --layer-size : red; } } } .anonymous-registration-layers { @private { @layer { @property --anonymous-size : 1px; } @layer second { @property --anonymous-size : red; } } width: var(--anonymous-size); } .transition-references { @private { @property --transition-size : 1px; --transition-size: 2px; } transition: --transition-size 1s; transition-property: --transition-size; } @media (min-width: 1000px) { .conditional-combination { @container (width > 10px) { @private { @layer inner { @property --combination-size : 1em; --combination-size: 2em; } } transition: --combination-size 1s; } width: var(--combination-size); } }