Tests for nested selector combinators
This commit is contained in:
parent
3699f987c8
commit
06be720f49
@ -130,6 +130,21 @@ mod test_variables {
|
||||
"a {\n $a: red\n}\n\nb {\n color: blue;\n}\n",
|
||||
"b {\n color: blue;\n}\n"
|
||||
);
|
||||
test!(
|
||||
combinator_following,
|
||||
"a + {\n b {\n color: red;\n }\n}\n",
|
||||
"a + b {\n color: red;\n}\n"
|
||||
);
|
||||
test!(
|
||||
combinator_preceding,
|
||||
"a {\n + b {\n color: red;\n }\n}\n",
|
||||
"a + b {\n color: red;\n}\n"
|
||||
);
|
||||
test!(
|
||||
combinator_alone,
|
||||
"a {\n + {\n b {\n color: red;\n }\n}\n",
|
||||
"a + b {\n color: red;\n}\n"
|
||||
);
|
||||
}
|
||||
|
||||
mod test_selectors {
|
||||
|
Loading…
x
Reference in New Issue
Block a user