vercel / satori

Enlightened library to convert HTML and CSS to SVG

Home Page:https://og-playground.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mask image always applied to root instead of element

pjeweb opened this issue ยท comments

Bug report

Description / Observed Behavior

If you apply a mask image to an element, it gets applied relative to the root node (top left most) instead of the offset position of the element.

Expected Behavior

I expected the mask to be applied to the elements bounds.

Reproduction

Reproduction using the same simple mask (just a 100x100 rect) to three elements. One positioned absolute to the top left, one slightly offset (only part of it is visible) and one centered on the canvas being hidden completely.

Additional Context

n/a

๐ŸŽ‰ This issue has been resolved in version 0.10.13 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€