swc/crates/swc_css_compat/tests/custom-media-query/complex.expect.css
Donny/강동윤 a5f7b4b8aa
feat(css/compat): Support custom media queries (#6625)
Co-authored-by: alexander.akait <sheo13666q@gmail.com>
2022-12-13 04:58:34 +00:00

81 lines
1.3 KiB
CSS

@media (min-width: 1) {
.a {
order: 1;
}
}
@media (min-width: 2) {
.a {
order: 2;
}
}
@media ((min-width: 3) or (min-width: 4)) and (width > 1024px) {
.a {
order: 3;
}
}
@media ((color) or (hover)) and (width > 1024px) {
.a {
color: green;
}
}
@media ((not (color)) or (hover)) and (width > 1024px) {
body {
background: red;
}
}
@media (((color) and (min-width: 20px)) or (hover)) and (min-height: 20px) {
.a {
color: green;
}
}
@media only screen and (width >= 570px) {
body {
background-color: orange;
}
}
@media only screen and (width >= 570px) {
body {
background-color: red;
}
}
@media only screen and (width >= 570px) {
body {
background-color: yellow;
}
}
@media only screen and (width >= 570px) {
body {
background-color: green;
}
}
@media only screen and (width >= 570px) {
body {
background-color: green;
}
}
@media only screen and (width >= 570px) {
body {
background-color: green;
}
}
@media not (width >= 570px) {
body {
background-color: green;
}
}
@media only screen and (not (width >= 570px)) {
body {
background-color: green;
}
}
@media only screen and ((not (width >= 570px))) {
body {
background-color: green;
}
}
@media (width >= 570px) and (width < 1000px) {
body {
background-color: green;
}
}