Skip to content

Commit

Permalink
test: more
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 13, 2022
1 parent 46ee470 commit b00b935
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/swc_css_compat/tests/media_query_ranges/input.css
Expand Up @@ -452,3 +452,15 @@
@media (200px <= width <= 500px) {
a { color: red }
}

@media (1 <= color <= 256) {
a { color: red }
}

@media (1 < color < 256) {
a { color: red }
}

@media (1 > color > 256) {
a { color: red }
}
15 changes: 15 additions & 0 deletions crates/swc_css_compat/tests/media_query_ranges/input.expect.css
Expand Up @@ -540,3 +540,18 @@
color: red;
}
}
@media ((min-color: 1) and (max-color: 256)) {
a {
color: red;
}
}
@media ((min-color: 2) and (max-color: 255)) {
a {
color: red;
}
}
@media ((max-color: 0) and (min-color: 257)) {
a {
color: red;
}
}

0 comments on commit b00b935

Please sign in to comment.