test/cases/colons.css
raw| 1 | @custom-selector :--heading h1, h2; |
| 2 | |
| 3 | .test { |
| 4 | margin: { |
| 5 | top: 0; |
| 6 | left: 0 |
| 7 | } |
| 8 | font: { |
| 9 | size: 16px; |
| 10 | weight: 300 |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | a:--any-link { |
| 15 | color: blue |
| 16 | } |
| 17 | a:--any-link { |
| 18 | &.is-disabled { |
| 19 | color: gray |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | article :--heading { |
| 24 | color: #000 |
| 25 | } |
| 26 | |
| 27 | :root { |
| 28 | --red: #F00 |
| 29 | } |
| 30 | |
| 31 | body { |
| 32 | color: var(--red) |
| 33 | } |