You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Chrome renders this as 16px.
The cssnano option calc converts these styles to html{font-size:.83333vw}
that Google Chrome renders as `15.9999px'.
Expected behaviour
The optimized values should be the same as the original.
What precision what would be acceptable to you? I don't think it's possible to ever get the right number, we can only add more 9s at the end. I am curious about the use case, with 1/10000 of a pixel, you would need a huge screen with a low resolution to see a difference. I would suggest deactivating the postcss-calc transform as I doubt it's possible to calculate an exact.
Describe the bug
I have the following code:
Google Chrome renders this as
16px
.The cssnano option
calc
converts these styles tohtml{font-size:.83333vw}
that Google Chrome renders as `15.9999px'.
Expected behaviour
The optimized values should be the same as the original.
Steps to reproduce
https://cssnano.co/playground/#eyJpbnB1dCI6Imh0bWwge1xuICBmb250LXNpemU6IGNhbGMoMTYgKiAxMDAgLyAxOTIwICogMXZ3KTtcbn0iLCJjb25maWciOiJjc3NuYW5vLXByZXNldC1kZWZhdWx0In0=
Version
6.0.1
Preset
default
Environment
Package details
Additional context
No response
The text was updated successfully, but these errors were encountered: