Skip to content

Commit

Permalink
Add test for unitless zero media query issue
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Apr 17, 2023
1 parent 8df86e4 commit 3ead95f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/lib.rs
Expand Up @@ -7192,6 +7192,24 @@ mod tests {
..Browsers::default()
},
);
prefix_test(
r#"
@media (width > 0) {
.foo { color: yellow; }
}
"#,
indoc! { r#"
@media (min-width: .001px) {
.foo {
color: #ff0;
}
}
"#},
Browsers {
chrome: Some(85 << 16),
..Browsers::default()
},
);

error_test(
"@media (min-width: hi) { .foo { color: chartreuse }}",
Expand Down

0 comments on commit 3ead95f

Please sign in to comment.