1 | # declaration-block-no-duplicate-custom-properties
|
2 |
|
3 | Disallow duplicate custom properties within declaration blocks.
|
4 |
|
5 |
|
6 | ```css
|
7 | a { --custom-property: pink; --custom-property: orange; }
|
8 | /** ↑ ↑
|
9 | * These duplicated custom properties */
|
10 | ```
|
11 |
|
12 | This rule is case-sensitive.
|
13 |
|
14 | ## Options
|
15 |
|
16 | ### `true`
|
17 |
|
18 | The following patterns are considered problems:
|
19 |
|
20 |
|
21 | ```css
|
22 | a { --custom-property: pink; --custom-property: orange; }
|
23 | ```
|
24 |
|
25 |
|
26 | ```css
|
27 | a { --custom-property: pink; background: orange; --custom-property: orange }
|
28 | ```
|
29 |
|
30 | The following patterns are _not_ considered problems:
|
31 |
|
32 |
|
33 | ```css
|
34 | a { --custom-property: pink; }
|
35 | ```
|
36 |
|
37 |
|
38 | ```css
|
39 | a { --custom-property: pink; --cUstOm-prOpErtY: orange; }
|
40 | ```
|