web api interface
SVGImageElement
The SVGImageElement interface corresponds to the <image> element.
Instance properties
This interface also inherits properties from its parent, SVGGraphicsElement.
crossOrigin- : A string reflecting the
crossorigincontent attribute, which represents the CORS setting of the given<image>element.
- : A string reflecting the
decoding- : Represents a hint given to the browser on how it should decode the image.
heightRead only- : An
SVGAnimatedLengthcorresponding to theheightattribute of the given<image>element.
- : An
hrefRead only- : An
SVGAnimatedStringcorresponding to thehreforxlink:hrefDeprecated attribute of the given<image>element.
- : An
preserveAspectRatioRead only- : An
SVGAnimatedPreserveAspectRatiocorresponding to thepreserveAspectRatioattribute of the given<image>element.
- : An
widthRead only- : An
SVGAnimatedLengthcorresponding to thewidthattribute of the given<image>element.
- : An
xRead only- : An
SVGAnimatedLengthcorresponding to thexattribute of the given<image>element.
- : An
yRead only- : An
SVGAnimatedLengthcorresponding to theyattribute of the given<image>element.
- : An
Instance methods
This interface also inherits methods from its parent interface, SVGGraphicsElement.
decode()- : Initiates asynchronous decoding of the image data. Returns a
Promisewhich resolves once the image data is ready to be used.
- : Initiates asynchronous decoding of the image data. Returns a
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.