I'm testing this plugin on Codepen. (Click on the icon in the top right corner of the CSS panel, and then click "View compiled CSS.")
Source:
@media (40em <= width < 60em) {}
@media (400px <= width < 600px) {}
Generated:
@media (min-width: 40em) and (max-width: 59.999em) {}
@media (min-width: 400px) and (max-width: 599px) {}
Could you explain why the plugin generates 599px instead of 599.999px, like with the em value? This is needed because without it, values between 599px and 600px aren't included in the media query, but they should be according to width < 600px.
I'm testing this plugin on Codepen. (Click on the icon in the top right corner of the CSS panel, and then click "View compiled CSS.")
Source:
Generated:
Could you explain why the plugin generates
599pxinstead of599.999px, like with theemvalue? This is needed because without it, values between599pxand600pxaren't included in the media query, but they should be according towidth < 600px.