[Bug] Commas in quotes need to be escaped
stonecrusher opened this issue · 1 comments
stonecrusher commented
Bug Report
Bug Description
UserCSS:
[style^="background: rgb(255, 255, 255);"] { background: yellow !important; }
gives an EXPECTED IDENT error when saving. Stylelint doesn't recognize it before.
If I escape the commas, it works:
[style^="background: rgb(255\, 255\, 255);"] { background: yellow !important; }
So this may be just a CSS syntax requirement. However that was not easy to solve. Do you think it's possible to display a more helpful error message?
System Information
- OS: Windows 10
- Browser: Firefox 126.0
- Stylus Version: 1.5.46