TAG
CSS
Result
Run
License
<h1>Custom Property</h1> <h1>Custom Property</h1>
@property --mycolor { syntax: "
"; inherits: false; initial-value: hwb(0 0% 0% / 0.7); } @property --mycolor2 { syntax: "
"; inherits: true; initial-value: hwb(0 0% 0% / 0.7); } body { --mycolor: blue; --mycolor2: blue; } h1:nth-child(1) { color: var(--mycolor); } h1:nth-child(2) { color: var(--mycolor2); }
Console
expand_less
License
License
by DevDic
Close