-
-
Notifications
You must be signed in to change notification settings - Fork 930
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 parens in selectors in indentation #5181
Comments
@fregante Thanks for the report and for using the template. I can reproduce using the demo with: :is(
a,
b
) {
width:
calc(
100% - 10px
);
} I've labelled the issue as ready to implement. Please consider contributing if you have time. There are steps on how to fix a bug in a rule in the Developer guide. |
Interestingly enough, :is(
:is(
a,
b
),
b
) {
width:
calc(
100% - 10px
);
} Whereas :is(
:is(
:is(
a,
b
) /* Unexpected whitespace before ")" */
)
) {
width:
calc(
100% - 10px
);
} |
Thanks for digging deeper.
It looks like we'll need to bring the same flexibility we have for functions to pseudo-classes, i.e. add a:
If anyone fancies tackling these, please create new issues for each so we can track them. Incidentally, it's amazing to see how much It makes me think there's scope for a new |
Closing as stylistic rules are frozen. The community is welcome to migrate the rule to a plugin and fix this bug. |
Initially reported in #3461 (comment)
indentation
does not cover the indentation of the content of parens in selectors, like:is()
13.11.0
a
andb
should be indented:They're accepted as is, without indentation.
Originally posted by @jeddy3 in #3461 (comment)
The text was updated successfully, but these errors were encountered: