Skip to content
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

[WIP] feat(swc/parser): multiple nesting selector #6195

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 16 additions & 5 deletions crates/swc_css_parser/tests/fixture/selector/nesting/input.css
Expand Up @@ -37,11 +37,22 @@ table.colortable {
& { padding: 2ch; }
}

/* TODO fix me */
/*.foo {*/
/* color: blue;*/
/* && { padding: 2ch; }*/
/*}*/
.foo {
color: blue;
&& { padding: 2ch; }
}

.foo {
color: blue;
&&&& { padding: 2ch; }
&&&& > p {
font-size: .9rem;
}

& > figcaption {
&&&& { padding: 2ch; }
}
}

.error, #test {
&:hover > .baz { color: red; }
Expand Down