[WIP] feat(swc/parser): multiple nesting selector #6195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Allow to parse:
Ref: https://www.w3.org/TR/css-nesting-1/#nesting
BREAKING CHANGE:
Maybe
Related issue (if exists):
@tabatkins Hello and sorry for ping, we need your advice and help here. In spec we have:
But if you look at https://www.w3.org/TR/selectors-4/#grammar
Compound selector contains a lot of other selectors, so based on the condition above, we can get (and it looks weird):
So can you provide syntax of
<compound-selector>
with<nesting-selector>
to fully undestand syntax and will be great to have it in spec too, thank you