Skip to content

value-no-vendor-prefix

Reports a vendor-prefixed keyword or function that has a standard value (-webkit-flex).

A prefixed value was a way to try a feature before it was standardised. Browsers support the standard value now, so the prefixed one is dead weight that a build step can add where it is needed.

To fix, use the standard value.

Reported
...
a { -webkit-transition: none; -webkit-foo: 1; display: -webkit-flex; background: -webkit-linear-gradient(red, blue) }
...
css:
lint:
rules:
value-no-vendor-prefix:
level: warn # off (default), warn, error
options:
ignore: []
less:
lint:
rules:
value-no-vendor-prefix:
level: warn # off (default), warn, error
options:
ignore: []
scss:
lint:
rules:
value-no-vendor-prefix:
level: warn # off (default), warn, error
options:
ignore: []
Option Type Default Description
ignore list [] Names left out: names, or /regex/.

Enabled by the presets: css/stylelint-standard.

Suppress one line with sudsy-disable-next-line value-no-vendor-prefix in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
stylelint value-no-vendor-prefix full