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

repeating-linear-gradient() is not working when rendered as png, svg or pdf

LouisCuvelier opened this issue · comments

Bug report

Description / Observed Behavior

repeating-linear-gradient() as background-image is not working when rendered as png, svg or pdf.

Expected Behavior

Show the repeating-linear-gradient() even with png output.

Reproduction

Issue reproduced here

I would take a look tomorrow! It's midnight in china🥲 @LouisCuvelier

Currently repeating-linear-gradient is not supported. I'll implement it recently!

just NOTE: I have been finding the correct algorithm for almost a week, which is not explicitly described on spec, on calculating the x1, x2, y1, y2 of linearGradient when gradientUnits is objectBoundingBox. But I finally solved it accidentally (😆). Anyway, next stage is code.