We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Test sample:
<style> :root { font-size: 50px; } p { border: 1px solid; } p:nth-child(1){ border-left-width: 1rem; } p:nth-child(2){ border-left-width: max(16px,1rem); } p:nth-child(3){ border-left-width: min(1rem,50px); } p:nth-child(4){ border-left-width: clamp(16px,1rem,50px); } </style> <body> <p>TEST</p> <p>TEST</p> <p>TEST</p> <p>TEST</p> </body>
HTML: https://gist.githack.com/MurakamiShinyu/cf431b1a13c51a02e5e6dd5912bb1f10/raw/min-max-rem-test.html
Test with Vivliostyle Viewer: https://vivliostyle.vercel.app/#src=https://gist.githack.com/MurakamiShinyu/cf431b1a13c51a02e5e6dd5912bb1f10/raw/min-max-rem-test.html
Result screenshot:
The border-left-width should be all 50px (= 1rem), but the result is different.
The text was updated successfully, but these errors were encountered:
fix: CSS rem unit not evaluated correctly in min/max/clamp functions
9f1b39a
- fix #1137
Fixed in #1141.
Test: https://vivliostyle-git-fix-issue1137-vivliostyle.vercel.app/#src=https://gist.githack.com/MurakamiShinyu/cf431b1a13c51a02e5e6dd5912bb1f10/raw/min-max-rem-test.html
Screenshot:
Sorry, something went wrong.
0694528
MurakamiShinyu
Successfully merging a pull request may close this issue.
Test sample:
HTML: https://gist.githack.com/MurakamiShinyu/cf431b1a13c51a02e5e6dd5912bb1f10/raw/min-max-rem-test.html
Test with Vivliostyle Viewer:
https://vivliostyle.vercel.app/#src=https://gist.githack.com/MurakamiShinyu/cf431b1a13c51a02e5e6dd5912bb1f10/raw/min-max-rem-test.html
Result screenshot:
The border-left-width should be all 50px (= 1rem), but the result is different.
The text was updated successfully, but these errors were encountered: