mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +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:
parent
b322abd8d0
commit
c7c3043aa2
10 changed files with 323 additions and 1 deletions
16
Userland/Libraries/LibWeb/SVG/SVGUseElement.idl
Normal file
16
Userland/Libraries/LibWeb/SVG/SVGUseElement.idl
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue