New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
u + a
selector is minified to u+a
#289
Comments
hmm interesting case. I think this is correct though. It looks like a bug in Chrome. In both Firefox and Safari, the link is green.
|
ha, I was just think that I should check more than just Chrome. Could it be that Safari and Firefox are lagging behind? |
https://github.com/web-platform-tests/wpt/blob/09b8d2f86a/css/css-syntax/urange-parsing.html If I read those tests correctly the parser/tokenizer should only form
|
If so seems like the other way? That was removing a token. Chrome seems to still be treating it as one. Or maybe it's not related to urange at all, just another bug. I'd file a bug report and see what they say. You could also look in the web platform tests, or ask the CSS workiNg group. |
Given the WPT tests I think it might make sense for |
There is also already a chromium bug related to those WPT tests : https://bugs.chromium.org/p/chromium/issues/detail?id=1215071&q=urange%20css&can=2 Leaving it up to you to ignore this issue or maybe apply a patch. |
Thanks for digging those up. I'll look into doing a workaround. |
I agree with @devongovett, sounds like a bug in chrome because #289 (comment), also the same issue was in firefox bug tracker and it was marked as a bug and fixed UPDATED: cssnano/cssnano#1433 (comment) |
becomes :
I expected
lightningcss
to avoid forming<urange>
tokens.https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#urange-syntax
There are likely more error cases.
Link text is
#ff0000
becauseu+a
is not a valid selector.The text was updated successfully, but these errors were encountered: