diff --git a/src/parse/media.rs b/src/parse/media.rs index bb28c67..df5c24e 100644 --- a/src/parse/media.rs +++ b/src/parse/media.rs @@ -155,6 +155,7 @@ impl<'a> Parser<'a> { } } + buf.push(' '); let ident = self.parse_identifier()?; self.whitespace(); diff --git a/tests/media.rs b/tests/media.rs index 8d69c68..727570f 100644 --- a/tests/media.rs +++ b/tests/media.rs @@ -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" +);