add test for @import inside @media

This commit is contained in:
Connor Skees 2021-07-28 02:18:40 -04:00
parent d07c1d3a06
commit 4b94c8a948

View File

@ -232,6 +232,18 @@ test!(
}",
"@media (max-width: 0px) {\n a {\n color: red;\n }\n}\n\na {\n color: red;\n}\n"
);
test!(
#[ignore = "we move to top of media"]
plain_import_inside_media_is_not_moved_to_top,
r#"@media foo {
a {
color: red;
}
@import "foo.css";
}"#,
"@media foo {\n a {\n color: red;\n }\n\n @import \"foo.css\";\n}\n"
);
error!(
media_feature_missing_closing_paren,