add test for `@import` inside `@media`
@@ -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,
