Fix false positives for multi-line url() in max-line-length
harbor run -t mimo-v2.6-rl/format-code-task-002768
harbor download mimo-v2.6-rl/format-code-task-002768
Fix the following issue:
Clearly describe the bug
There are false positives for max line length when there are spaces inside url() content.
url()
Which rule, if any, is the bug related to?
max-line-length
What CSS is needed to reproduce the bug?
div { background-image: url( "data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 9l5 5 5-5z'/></svg>" ); }
What tests are not passing?
{ code: "a {\n background: url(\n 'something something something'\n );\n}" }
What stylelint configuration is needed to reproduce the bug?
rules: max-line-length: - 20
Which version of stylelint are you using?
9.10.1
How are you running stylelint: CLI, PostCSS plugin, Node.js API?
CLI with stylelint "**/*.css"
stylelint "**/*.css"
Does the bug relate to non-standard syntax (e.g. SCSS, Less etc.)?
No.
What did you expect to happen?
No warnings to be flagged.
What actually happened (e.g. what warnings or errors did you get)?
The following warnings were flagged:
70:102 ✖ Expected line length to be no more than 80 characters max-line-length