The SVGUseElement
interface corresponds to the <use>
element.
This interface also inherits properties from its parent interface, SVGGraphicsElement
and implements properties from SVGURIReference
.
SVGUseElement.x
Read only
SVGAnimatedLength
corresponding to the x
attribute of the given element.SVGUseElement.y
Read only
SVGAnimatedLength
corresponding to the y
attribute of the given element.SVGUseElement.width
Read only
SVGAnimatedLength
corresponding to the width
attribute of the given element.SVGUseElement.height
Read only
SVGAnimatedLength
corresponding to the height
attribute of the given element.SVGUseElement.instanceRoot
Read only
SVGAnimatedLength
corresponding to the instance root of the given element, which is a direct child of the elements shadow root. If the element does not have a shadow tree (for example, because its URI is invalid or because it has been disabled by conditional processing), then getting this attribute returns null
.SVGUseElement.animatedInstanceRoot
Read only
SVGAnimatedLength
corresponding to the instance root of the given element, which is a direct child of the elements shadow root. If the element does not have a shadow tree (for example, because its URI is invalid or because it has been disabled by conditional processing), then getting this attribute returns null
.This interface doesn't implement any specific methods, but inherits methods from its parent interface, SVGGraphicsElement
and implements methods from SVGURIReference
.
Specification | Status | Comment |
---|---|---|
Scalable Vector Graphics (SVG) 2 The definition of 'SVGUseElement' in that specification. | Candidate Recommendation | Redefined the properties instanceRoot and animatedInstanceRoot . |
Scalable Vector Graphics (SVG) 1.1 (Second Edition) The definition of 'SVGUseElement' in that specification. | Recommendation | Initial definition |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | ? | (Yes) | ? | ? | ? | ? |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | (Yes) | ? | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement