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
I don't think it's got to to with the nesting. The default mask mode for images in satori is was luminance not alpha. So if you use the mask but with a white shape instead of black it works:
Bug report
Description / Observed Behavior
What kind of issues did you encounter with Satori?
Child
img
elements of elements that use themaskImage
style prop are being hidden behind one of the SVG elements.Screenshots of the problematic SVG element:
Expected Behavior
How did you expect Satori to behave here?
That the image would show the same way it does in the browser (or the Native tab in the Satori playground).
Reproduction
Link.
Additional Context
Satori version, and any other context about the problem here.
Satori version:
"satori": "^0.10.9"
.I tried installing both of the following branches as they include updates to masking:
Neither rendered the results I wanted.
I also tried a variation of the code where I removed the absolutely position child and applied the mask to the parent.
This also works in the browser / Native tab in the satori playground, but seemed to break the SVG render even more:
Expand alternate code sample
The text was updated successfully, but these errors were encountered: