resolve media query bug involving multiple identifiers
This commit is contained in:
parent
2fa1804ccd
commit
aa8f120824
@ -155,6 +155,7 @@ impl<'a> Parser<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buf.push(' ');
|
||||||
let ident = self.parse_identifier()?;
|
let ident = self.parse_identifier()?;
|
||||||
|
|
||||||
self.whitespace();
|
self.whitespace();
|
||||||
|
@ -31,3 +31,12 @@ test!(
|
|||||||
}",
|
}",
|
||||||
"@media screen {\n a b {\n color: red;\n }\n a c {\n color: green;\n }\n}\n"
|
"@media screen {\n a b {\n color: red;\n }\n a c {\n color: green;\n }\n}\n"
|
||||||
);
|
);
|
||||||
|
test!(
|
||||||
|
multiple_identifiers_in_query,
|
||||||
|
"@media not screen {
|
||||||
|
a {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
}",
|
||||||
|
"@media not screen {\n a {\n color: red;\n }\n}\n"
|
||||||
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user