UNPKG

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