1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

LibWeb: Add an initial implementation of SVG <radialGradient>

This follows on from the SVG linear gradients. It supports the same
features (xlink:href, gradientUnits, gradientTransform).

With this commit I have now implemented all web gradients :^)

(Though we are still missing a few parameters for SVG gradients,
e.g. spreadMethod).
This commit is contained in:
MacDue 2023-05-02 23:11:58 +01:00 committed by Andreas Kling
parent 2826bd2b45
commit 9b652842e4
6 changed files with 289 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#import <SVG/SVGGradientElement.idl>
[Exposed=Window]
interface SVGRadialGradientElement : SVGGradientElement {
[SameObject] readonly attribute SVGAnimatedLength cx;
[SameObject] readonly attribute SVGAnimatedLength cy;
[SameObject] readonly attribute SVGAnimatedLength r;
[SameObject] readonly attribute SVGAnimatedLength fx;
[SameObject] readonly attribute SVGAnimatedLength fy;
[SameObject] readonly attribute SVGAnimatedLength fr;
};