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
lineHeight
If you define lineHeight as the number 1, the number is interpreted as a unitless multiplier of the fontsize, as it should be. This is correct:
1
https://og-playground.vercel.app/?share=RZBPT8MwDMW_iuVzBWUaEorGbkjjDMde0sVrDGlSJS7dqPrdScpgx_d7_vPsGY_BECrcGf6CJBdHz_PceIBex469groqatDGsO_-5Cl4eeNvUtDgpt4M5wZXPrERW-BTXf9DS9xZKXT7eKOtPn52MYzeFGeyLHR1HHs6XHseMlmWxu-LcSDnAryC7iGFnkDoLCBWC3DKWyLdNX53nw_ZY4VhEA4-oZpxTYUqZ6rwNwyqbRGG2rFDddIuUYXUhw9-vwzlHTKtKs8pp770LRlUEkdaKhTd5gpbwkwhOoPLDw
If you define lineHeight as a string "1", the string is interpreted as "1px": https://og-playground.vercel.app/?share=RZBPT8MwDMW_iuVzBWUaEorGbkjjDMde0sVrDGlSJS7dqPrdSQpsx_d7_vPsGY_BECrcGf6CJBdHz_PceIBex469groqatDGsO_-5Sl4eeNvUtDgpt4M5wZXPrERW-BTXV-hJe6sFLp9vNFWHz-7GEZvijNZFvpzHHs6XHseVrosjd8X80DOBXgF3UMKPYHQWUCsFuCUN0W6a_zuPh-zxwrDIBx8QjXjmgxVzlXhbyBU2yIMtWOH6qRdogqpDx_8fhnKS2RaVZ5Tzn3pWzKoJI60VCi6zRW2hJlCdAaXHw
"1"
I would expect Satori to match React behavior here, which treats both 1 and "1" as a unitless multiplier of the fontSize and NOT as 1px.
1px
repro
Satori version, and any other context about the problem here.
The text was updated successfully, but these errors were encountered:
fix: should respect stringify number for line-height (#543)
0a016f1
Close #535 Co-authored-by: Shu Ding <g@shud.in>
🎉 This issue has been resolved in version 0.10.6 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
fix: should respect stringify number for line-height (vercel#543)
23199e1
Close vercel#535 Co-authored-by: Shu Ding <g@shud.in>
Successfully merging a pull request may close this issue.
Bug report
Description / Observed Behavior
If you define
lineHeight
as the number1
, the number is interpreted as a unitless multiplier of the fontsize, as it should be. This is correct:https://og-playground.vercel.app/?share=RZBPT8MwDMW_iuVzBWUaEorGbkjjDMde0sVrDGlSJS7dqPrdScpgx_d7_vPsGY_BECrcGf6CJBdHz_PceIBex469groqatDGsO_-5Cl4eeNvUtDgpt4M5wZXPrERW-BTXf9DS9xZKXT7eKOtPn52MYzeFGeyLHR1HHs6XHseMlmWxu-LcSDnAryC7iGFnkDoLCBWC3DKWyLdNX53nw_ZY4VhEA4-oZpxTYUqZ6rwNwyqbRGG2rFDddIuUYXUhw9-vwzlHTKtKs8pp770LRlUEkdaKhTd5gpbwkwhOoPLDw
If you define
lineHeight
as a string"1"
, the string is interpreted as "1px":https://og-playground.vercel.app/?share=RZBPT8MwDMW_iuVzBWUaEorGbkjjDMde0sVrDGlSJS7dqPrdSQpsx_d7_vPsGY_BECrcGf6CJBdHz_PceIBex469groqatDGsO_-5Sl4eeNvUtDgpt4M5wZXPrERW-BTXV-hJe6sFLp9vNFWHz-7GEZvijNZFvpzHHs6XHseVrosjd8X80DOBXgF3UMKPYHQWUCsFuCUN0W6a_zuPh-zxwrDIBx8QjXjmgxVzlXhbyBU2yIMtWOH6qRdogqpDx_8fhnKS2RaVZ5Tzn3pWzKoJI60VCi6zRW2hJlCdAaXHw
Expected Behavior
I would expect Satori to match React behavior here, which treats both
1
and"1"
as a unitless multiplier of the fontSize and NOT as1px
.Reproduction
repro
Additional Context
Satori version, and any other context about the problem here.
The text was updated successfully, but these errors were encountered: