satori icon indicating copy to clipboard operation
satori copied to clipboard

Support CSS Mask Image?

Open JeroenReumkens opened this issue 2 years ago • 1 comments

Feature Request

Description

Is there any way we could support CSS Mask Image? This can be used to create fade out gradients for eg long texts. I think it would be really useful, especially when your background isn't a solid color, so you can not put a filled gradient on top of this.

Thanks for the amazing work on Satori by the way, really loving it so far!

JeroenReumkens avatar Oct 19 '22 15:10 JeroenReumkens

Sounds like something that can be supported technically in SVG. Adding the "enhancement" label to track.

shuding avatar Oct 19 '22 19:10 shuding

+1

liho00 avatar Apr 26 '23 06:04 liho00

+1

ppjjzz avatar Apr 27 '23 04:04 ppjjzz

Adding some notes, that mask-image: linear-gradient(rgba(0, 0, 0, 1), transparent); might be the easiest to support via <mask>. For things like mask-image: image(url(mask.png), skyblue); and mask-image: url(masks.svg#mask1); we might need to think about ways to load resources there, similar to background-image: url(...).

shuding avatar Apr 27 '23 17:04 shuding

Interesting!I'd like to work on it.🥳

Jackie1210 avatar May 05 '23 10:05 Jackie1210

+1

ppjjzz avatar May 18 '23 14:05 ppjjzz