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

LibWeb: Implement the <use> SVG element

The SVG <use> element is used to be able to reuse other SVG graphics
without having to re-write the svg element.

We now support this feature! :^)
This commit is contained in:
PrestonLTaylor 2023-05-30 21:23:52 +01:00 committed by Andreas Kling
parent b322abd8d0
commit c7c3043aa2
10 changed files with 323 additions and 1 deletions

View file

@ -0,0 +1,16 @@
#import <SVG/SVGAnimatedLength.idl>
#import <SVG/SVGElement.idl>
#import <SVG/SVGGraphicsElement.idl>
// https://svgwg.org/svg2-draft/struct.html#InterfaceSVGUseElement
[Exposed=Window]
interface SVGUseElement : SVGGraphicsElement {
[SameObject] readonly attribute SVGAnimatedLength x;
[SameObject] readonly attribute SVGAnimatedLength y;
[SameObject] readonly attribute SVGAnimatedLength width;
[SameObject] readonly attribute SVGAnimatedLength height;
[SameObject] readonly attribute SVGElement? instanceRoot;
[SameObject] readonly attribute SVGElement? animatedInstanceRoot;
};
// FIXME: SVGUseElement includes SVGURIReference;