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
When we customize the theme's breakpoints via config by using rem-based values, the calcMaxWidthBySize utility provided by the preset-mini uses a subtraction coefficient of 0.1 which produces an inaccurate value in the resultant media queries, since it should be 1/16 instead (or, more generally, 1/rem-context-size).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
UnoCSS version
v0.51.8
Describe the bug
When we customize the theme's breakpoints via config by using rem-based values, the calcMaxWidthBySize utility provided by the preset-mini uses a subtraction coefficient of 0.1 which produces an inaccurate value in the resultant media queries, since it should be 1/16 instead (or, more generally, 1/rem-context-size).
Reproduction
https://uno.antfu.me/play/?html=DwEwlgbgBAFgjFAZgGwKYA8oCsCuBnAFzEQE8BaAY1QDsDUAnKMOgWz0prsYHMBDABzIAmKMBYgAXCgyUA9sgB8AKCijw0QXAAsUAEaz6IBnoNH6ZeqhAB6AMwAGKAuDX1y1aEhRNO-YeMUyLx4eAC8AER%2BZhZWdvbhzq6Q7mpePnrcZLrIOKjWQkKJbiqpGmTaUIHBYZGZ2bn5QgkuxS3JQA&config=JYWwDg9gTgLgBAbzgEwKYDNgDtUGEJaYDmcAvnOlBCHAOQCuWEAxgM6u0BQnqAHpLBQYAhvQA28NJhz5CwIgAoEnOHBgALVCFQAuRCtVwARlFTCA1pGwxWe5YcMhke2gBYAHKZC0ANAYdiRC4AbK5evv6GvGIu7gAM4ZGkBsmkAJRAA&css=Q&options=N4IgzgLgTglgxhEAuaBXApgXyA
System Info
No response
Validations
The text was updated successfully, but these errors were encountered: