1 | # value-no-vendor-prefix
|
2 |
|
3 | Disallow vendor prefixes for values.
|
4 |
|
5 |
|
6 | ```css
|
7 | a { display: -webkit-flex; }
|
8 | /** ↑
|
9 | * These prefixes */
|
10 | ```
|
11 |
|
12 | This rule will only complain for prefixed _standard_ values, and not for prefixed _proprietary_ or _unknown_ ones.
|
13 |
|
14 | ## Options
|
15 |
|
16 | ### `true`
|
17 |
|
18 | The following patterns are considered violations:
|
19 |
|
20 |
|
21 | ```css
|
22 | a { display: -webkit-flex; }
|
23 | ```
|
24 |
|
25 |
|
26 | ```css
|
27 | a { max-width: -moz-max-content; }
|
28 | ```
|
29 |
|
30 |
|
31 | ```css
|
32 | a { background: -webkit-linear-gradient(bottom, #000, #fff); }
|
33 | ```
|
34 |
|
35 | The following patterns are _not_ considered violations:
|
36 |
|
37 |
|
38 | ```css
|
39 | a { display: flex; }
|
40 | ```
|
41 |
|
42 |
|
43 | ```css
|
44 | a { max-width: max-content; }
|
45 | ```
|
46 |
|
47 |
|
48 | ```css
|
49 | a { background: linear-gradient(bottom, #000, #fff); }
|
50 | ```
|
51 |
|
52 | ## Optional secondary options
|
53 |
|
54 | ### `ignoreValues: ["string"]`
|
55 |
|
56 | Given:
|
57 |
|
58 | ```
|
59 | ["grab", "max-content"]
|
60 | ```
|
61 |
|
62 | The following patterns are _not_ considered violations:
|
63 |
|
64 |
|
65 | ```css
|
66 | cursor: -webkit-grab;
|
67 | ```
|
68 |
|
69 |
|
70 | ```css
|
71 | .foo { max-width: -moz-max-content; }
|
72 | ```
|