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 | The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
|
15 |
|
16 | ## Options
|
17 |
|
18 | ### `true`
|
19 |
|
20 | The following patterns are considered violations:
|
21 |
|
22 |
|
23 | ```css
|
24 | a { display: -webkit-flex; }
|
25 | ```
|
26 |
|
27 |
|
28 | ```css
|
29 | a { max-width: -moz-max-content; }
|
30 | ```
|
31 |
|
32 |
|
33 | ```css
|
34 | a { background: -webkit-linear-gradient(bottom, #000, #fff); }
|
35 | ```
|
36 |
|
37 | The following patterns are _not_ considered violations:
|
38 |
|
39 |
|
40 | ```css
|
41 | a { display: flex; }
|
42 | ```
|
43 |
|
44 |
|
45 | ```css
|
46 | a { max-width: max-content; }
|
47 | ```
|
48 |
|
49 |
|
50 | ```css
|
51 | a { background: linear-gradient(bottom, #000, #fff); }
|
52 | ```
|
53 |
|
54 | ## Optional secondary options
|
55 |
|
56 | ### `ignoreValues: ["string"]`
|
57 |
|
58 | Given:
|
59 |
|
60 | ```
|
61 | ["grab", "max-content"]
|
62 | ```
|
63 |
|
64 | The following patterns are _not_ considered violations:
|
65 |
|
66 |
|
67 | ```css
|
68 | cursor: -webkit-grab;
|
69 | ```
|
70 |
|
71 |
|
72 | ```css
|
73 | .foo { max-width: -moz-max-content; }
|
74 | ```
|