-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Fix false positives for flush comments containing a comma in selector-max-universal #3729
Comments
@ssivanatarajan Thanks for the report and for using the template. This is an interesting bug, and is likely within the selector parser. It seems it is only triggered when:
For example, this will also trigger the bug: flush/* , */flush {}
There's a pending PR, #3284, to update the selector parser to the latest version. I suggest we wait for that to be merged to see if it resolves the issue. In the meanwhile, I believe both the following will workaround the issue:
|
I think what postcss not support comment as part of selector and as result we got selector with comment and with comma. After split selector by comma we got incorrect selectors. |
Do you want to raise an issue upstream in PostCSS to query this behaviour? |
@jeddy3 |
Done in #3817 |
There was a false positive for the selector's list with a commented selector in selector-max-universal rule
selector-max-universal
e.g.
e.g.
9.2.1
Node API
NO,
No warnings to be flagged.
The following warnings were flagged:
Expected "*/.calNav" to have no more than 0 universal selectors (selector-max-universal)
The text was updated successfully, but these errors were encountered: