Use px units for media queries, convert to rem
@media screen and (max-width: 1000px) {
.test {
width: 100px;
}
}
But I use custom units and expect no px conversion, which will cause the media query style to be lost
@media screen and (max-width: 1000customPx) {
.test {
width: 100px;
}
}
Use px units for media queries, convert to rem @media screen and (max-width: 1000px) { .test { width: 100px; } }
But I use custom units and expect no px conversion, which will cause the media query style to be lost @media screen and (max-width: 1000customPx) { .test { width: 100px; } }