From 8f46feaad1ac5ed76426e3b1d75dff0b9cbdca60 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 18 Oct 2022 16:20:07 +0300 Subject: [PATCH] feat(swc/parser): multiple nesting selector --- .../tests/fixture/selector/nesting/input.css | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/crates/swc_css_parser/tests/fixture/selector/nesting/input.css b/crates/swc_css_parser/tests/fixture/selector/nesting/input.css index e6a3eb069a28..a327dcb7e816 100644 --- a/crates/swc_css_parser/tests/fixture/selector/nesting/input.css +++ b/crates/swc_css_parser/tests/fixture/selector/nesting/input.css @@ -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; }