|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- # value-no-vendor-prefix
-
- Disallow vendor prefixes for values.
-
- <!-- prettier-ignore -->
- ```css
- a { display: -webkit-flex; }
- /** ↑
- * These prefixes */
- ```
-
- This rule will only complain for prefixed _standard_ values, and not for prefixed _proprietary_ or _unknown_ ones.
-
- The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
-
- ## Options
-
- ### `true`
-
- The following patterns are considered violations:
-
- <!-- prettier-ignore -->
- ```css
- a { display: -webkit-flex; }
- ```
-
- <!-- prettier-ignore -->
- ```css
- a { max-width: -moz-max-content; }
- ```
-
- <!-- prettier-ignore -->
- ```css
- a { background: -webkit-linear-gradient(bottom, #000, #fff); }
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- a { display: flex; }
- ```
-
- <!-- prettier-ignore -->
- ```css
- a { max-width: max-content; }
- ```
-
- <!-- prettier-ignore -->
- ```css
- a { background: linear-gradient(bottom, #000, #fff); }
- ```
-
- ## Optional secondary options
-
- ### `ignoreValues: ["string"]`
-
- Given:
-
- ```
- ["grab", "max-content"]
- ```
-
- The following patterns are _not_ considered violations:
-
- <!-- prettier-ignore -->
- ```css
- cursor: -webkit-grab;
- ```
-
- <!-- prettier-ignore -->
- ```css
- .foo { max-width: -moz-max-content; }
- ```
|