Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Dec 12, 2022
1 parent 581c1f0 commit cc42cc3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/swc_css_compat/tests/custom-media-query/basic/2.css
@@ -0,0 +1,9 @@
@custom-media --mq-a (max-width: 30em), (max-height: 30em);
@custom-media --mq-b screen and (max-width: 30em);
@custom-media --not-mq-a not all and (--mq-a);

@media not all and (--mq-a) {
body {
order: 2;
}
}
9 changes: 9 additions & 0 deletions crates/swc_css_compat/tests/custom-media-query/basic/3.css
@@ -0,0 +1,9 @@
@custom-media --mq-a (max-width: 30em), (max-height: 30em);
@custom-media --mq-b screen and (max-width: 30em);
@custom-media --not-mq-a not all and (--mq-a);

@media (--not-mq-a) {
body {
order: 1;
}
}
9 changes: 9 additions & 0 deletions crates/swc_css_compat/tests/custom-media-query/basic/4.css
@@ -0,0 +1,9 @@
@custom-media --mq-a (max-width: 30em), (max-height: 30em);
@custom-media --mq-b screen and (max-width: 30em);
@custom-media --not-mq-a not all and (--mq-a);

@media not all and (--not-mq-a) {
body {
order: 2;
}
}

0 comments on commit cc42cc3

Please sign in to comment.