-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
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
Color in hsl is not applied when using deg units (local hosted) #374
Comments
I tried to find the cause of this bug. And I couldn't find it. |
Can it be caused by differences between normal edge runtime and its node emulation? |
Node 18 lts ( |
Can you try latest |
Issue remains in latest version |
Thanks! Since the SVG is correct, this should be something in Resvg (handles SVG → PNG). I'll upgrade that lib and see if it's fixed in the upstream. |
Just verified, this is indeed caused by https://github.com/RazrFalcon/resvg, you can open an issue there — however I'd like to also work around it inside Satori by removing the |
resvg has no plans to implement this linebender/resvg#579, I think it would be better to implement it separately in this library. |
…n `@resvg/resvg-js` (#449) Close #374 Releated issue: linebender/resvg#579
…n `@resvg/resvg-js` (#449) Close vercel/satori#374 Releated issue: linebender/resvg#579
…n `@resvg/resvg-js` (vercel#449) Close vercel#374 Releated issue: linebender/resvg#579
Bug report
Description / Observed Behavior
When defining color in
hsl
, if it hasdeg
units, it is not applied, black is used instead. Example:hsl(200deg, 50%, 50%)
- expected blue, results in black. Bug appears when local hosted, but not in playground.Result in local project:
Result in playground:
Expected Behavior
Results should be identical, both words must be blue in local project
Reproduction
As mentioned above, it works in playground.
https://og-playground.vercel.app/?share=hZNva9swEMa_yiEoScAsTtigiCQwunbbm73Z3gz8RrHOtjJZMpK81Av-7jvZ_Ze2bs8gpOP3HPLdoxPLrUTG2XIJN0Lrvcj_QGFN8CCMhOvaHhQIhyA7I2qVE9KBtkKizAxpCmdr-GptqRFuHmRXX354UAZCpTxIrO2HzAz4b9tCLgwI7S04DK2jPRStyYOyBnJbN9agCaMYodGiK51tjaQK8wVsd3DKDBBofKBVW7eCLcwqr-frNJVYJvApvRiWxewZuX5CnmMRvLvNPO4fYyPV3_NMDB86jdvTcJWXEdv3U_1DDqv1ZfI6E_s8_hiH2bFSAWcT5FHJUBG0StOLKaZCVVbhHUgqH9tJVKHxdooKeBs-a1Ua4nKaBLopUkTqe8Dav4seWh9U0V1RY4h7E-_789yOphPGb0xsfEMGup_AMFh-54S-331DrW2yWUaIpOe1p6Vrkh6t0_JV5WZJLniSW2SmB8gMS5htonE94yc2DIrxSzIXGwfC-Md4kLhvS8YLMj0mjF7DQf3qmvjownE4UZ3omet6j5Lx4Frs-_8
But same code is not working in local project.
Here is entire code from /api/og endpoint
Additional Context
Project settings:
The text was updated successfully, but these errors were encountered: