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
In the repro sample code you can see I'm just reading the height from pass1 to generate pass2 with a height - so presumably satori should have enough info.
In pass1 where the shadow doesn't appear, the code for the shadow is still in the SVG but it seems the mask itself is missing the height value:
The source of this bug is that when height is not explicitly given, satori will first generate the children of the SVG and use the computedHeight in the end. However, before the computedHeight is obtained, the shadow element is already generated using the undefined SVG height.
A workaround for this issue can be using a placeholder if height is not given and injecting the height later.
Bug report
Description / Observed Behavior
If you don’t provide an explicit height to satori,
box-shadow
doesn't seem to work:Expected Behavior
How did you expect Satori to behave here?
Reproduction
Additional Context
Satori version: 0.1.1
A couple of things worth pointing out:
The text was updated successfully, but these errors were encountered: