property-no-vendor-prefix
What it does
Section titled “What it does”Reports a vendor-prefixed property that has a standard property (-webkit-transition). The ignore option lists names to leave out.
Why it matters
Section titled “Why it matters”Prefixed properties were the way to try a feature before it was standardised. Browsers support the standard name now, so the prefixed one is dead weight, and tools that add prefixes where needed (autoprefixing in a build) do it better.
To fix, delete the prefixed property or use the standard one.
Example
Section titled “Example”...a { -webkit-transition: none; -webkit-foo: 1; display: -webkit-flex; background: -webkit-linear-gradient(red, blue) }...Configuration
Section titled “Configuration”css: lint: rules: property-no-vendor-prefix: level: warn # off (default), warn, error options: ignore: []less: lint: rules: property-no-vendor-prefix: level: warn # off (default), warn, error options: ignore: []scss: lint: rules: property-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 property-no-vendor-prefix in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| stylelint | property-no-vendor-prefix |
partial | -webkit-background-size with several values is reported (stylelint skips it). |