Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 881 Bytes

File metadata and controls

63 lines (43 loc) · 881 Bytes

value-no-vendor-prefix

Disallow vendor prefixes for values.

a { display: -webkit-flex; }
/**          ↑
 *  These prefixes */

This rule will only complain for prefixed standard values, and not for prefixed proprietary or unknown ones.

选项

true

以下模式被视为违规:

a { display: -webkit-flex; }
a { max-width: -moz-max-content; }
a { background: -webkit-linear-gradient(bottom, #000, #fff); }

以下模式被视为违规:

a { display: flex; }
a { max-width: max-content; }
a { background: linear-gradient(bottom, #000, #fff); }

可选的辅助选项

ignoreValues: ["string"]

给定:

["grab", "max-content"]

以下模式被视为违规:

cursor: -webkit-grab;
.foo { max-width: -moz-max-content; }