resolve media query bug involving multiple identifiers

This commit is contained in:
Connor Skees 2020-07-06 15:37:03 -04:00
parent 2fa1804ccd
commit aa8f120824
2 changed files with 10 additions and 0 deletions

View File

@ -155,6 +155,7 @@ impl<'a> Parser<'a> {
}
}
buf.push(' ');
let ident = self.parse_identifier()?;
self.whitespace();

View File

@ -31,3 +31,12 @@ test!(
}",
"@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"
);