Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can media queries use custom units? #767

Open
CWH0908 opened this issue Jul 4, 2024 · 1 comment
Open

Can media queries use custom units? #767

CWH0908 opened this issue Jul 4, 2024 · 1 comment

Comments

@CWH0908
Copy link

CWH0908 commented Jul 4, 2024

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;
}
}

@CWH0908
Copy link
Author

CWH0908 commented Jul 8, 2024

Can the author help to see the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant