Back to Content

SVGSymbolElement

files/en-us/web/api/svgsymbolelement/index.md

latest944 B
Original Source

{{APIRef("SVG")}}

The SVGSymbolElement interface corresponds to the {{SVGElement("symbol")}} element.

{{InheritanceDiagram}}

Instance properties

This interface also inherits properties from its parent interface, {{domxref("SVGGraphicsElement")}}.

  • {{domxref("SVGSymbolElement.viewBox")}} {{ReadOnlyInline}}
    • : An {{domxref("SVGAnimatedRect")}} corresponding to the {{SVGAttr("viewBox")}} attribute of the given {{SVGElement("symbol")}} element.
  • {{domxref("SVGSymbolElement.preserveAspectRatio")}} {{ReadOnlyInline}}
    • : An {{domxref("SVGAnimatedPreserveAspectRatio")}} corresponding to the {{SVGAttr("preserveAspectRatio")}} attribute of the given {{SVGElement("symbol")}} element.

Instance methods

This interface doesn't implement any specific methods, but inherits methods from its parent interface, {{domxref("SVGGraphicsElement")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}