You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unclosed comment for an unquoted url() with /* directly after a comma #2194
In CSS Syntax 3, the , is a comma token of its own, and url(/b/*.png) is one url token, so the /* is not a comment.
We hit this in Tailwind CSS. @tailwindcss/postcss minifies its output with Lightning CSS, then parses the result with postcss.parse(). Lightning CSS removes the space after the comma, and also the quotes of url("/b/*.png"). So a build that parsed background-image: url(a.png), url("/b/*.png") fine throws after minification. We found it while reviewing a Tailwind CSS change, not from a user report.
The tokenizer reads ,url as one word, because RE_WORD_END does not stop at ,. So the url check in the OPEN_PARENTHESES case does not match. It looks like the same kind of bug as #2185. A check of only the part of prev after its last , fixes it locally. I can send a PR with a test if you want one.
Activity
Ignore arbitrary values that start a CSS comment (#20690)
ai commentedon Nov 12, 2026
We have a PR, I am reviewing it
ai commentedon Nov 13, 2026
The fix was release 8.5.33
Don't treat `/*` inside an unquoted `url(…)` as a comment in the CSS …