@media no longer consumes everything after it as children

This commit is contained in:
Connor Skees 2020-07-01 07:10:47 -04:00
parent 84f52d2ef4
commit 4b98ec198d
2 changed files with 1 additions and 2 deletions

View File

@ -1066,7 +1066,7 @@ impl<'a> Parser<'a> {
at_root_has_selector: self.at_root_has_selector, at_root_has_selector: self.at_root_has_selector,
extender: self.extender, extender: self.extender,
} }
.parse()?; .parse_stmt()?;
let mut rules = Vec::with_capacity(raw_body.len()); let mut rules = Vec::with_capacity(raw_body.len());
let mut body = Vec::new(); let mut body = Vec::new();

View File

@ -1360,7 +1360,6 @@ test!(
".bar {\n a: b;\n}\n" ".bar {\n a: b;\n}\n"
); );
test!( test!(
#[ignore = "media queries are not yet parsed correctly"]
media_inside_placeholder, media_inside_placeholder,
"%foo {bar {@media screen {a {b: c}}}} "%foo {bar {@media screen {a {b: c}}}}
.baz {c: d} .baz {c: d}