Skip to content

at-rule-no-vendor-prefix

Reports a vendor-prefixed at-rule that has a standard one (@-webkit-keyframes).

A prefixed at-rule was a way to try a feature before it was standardised. Browsers support the standard name now, so the prefixed one repeats the whole block for nothing.

To fix, use the standard at-rule.

Reported
@-webkit-keyframes k { from { color: red } }
...
css:
lint:
rules:
at-rule-no-vendor-prefix:
level: warn # off (default), warn, error
options:
ignore: []
less:
lint:
rules:
at-rule-no-vendor-prefix:
level: warn # off (default), warn, error
options:
ignore: []
scss:
lint:
rules:
at-rule-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 at-rule-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 at-rule-no-vendor-prefix full