parcel-bundler / lightningcss

An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.
https://lightningcss.dev
Mozilla Public License 2.0
6.21k stars 171 forks source link

Can media queries use custom units? #767

Open CWH0908 opened 1 month ago

CWH0908 commented 1 month ago

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 commented 3 weeks ago

Can the author help to see the solution?