add test for @import
inside @media
This commit is contained in:
parent
d07c1d3a06
commit
4b94c8a948
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user