function-url-quotes
What it does
Section titled “What it does”Reports an unquoted url(...).
Why it matters
Section titled “Why it matters”An unquoted url has to escape spaces, parentheses and quotes, and a file name that has one of these breaks the declaration. A quoted url can hold any character, so the habit of quoting never breaks.
To fix, wrap the argument in quotes.
Example
Section titled “Example”... transition: 0s; width: calc(0px + 1px);... background: url(a.png), url("b.png");...Configuration
Section titled “Configuration”css: lint: rules: function-url-quotes: warn # off (default), warn, errorless: lint: rules: function-url-quotes: warn # off (default), warn, errorscss: lint: rules: function-url-quotes: warn # off (default), warn, errorEnabled by the presets: css/stylelint-standard.
Suppress one line with sudsy-disable-next-line function-url-quotes 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 | function-url-quotes |
partial | differs from stylelint on url() inside image-set() |