Back to Content

SVGForeignObjectElement

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

latest1.4 KB
Original Source

{{APIRef("SVG")}}

The SVGForeignObjectElement interface provides access to the properties of {{SVGElement("foreignObject")}} elements, as well as methods to manipulate them.

{{InheritanceDiagram}}

Instance properties

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

  • {{domxref("SVGForeignObjectElement.x")}} {{ReadOnlyInline}}
    • : An {{domxref("SVGAnimatedLength")}} corresponding to the {{SVGAttr("x")}} attribute of the given {{SVGElement("foreignObject")}} element.
  • {{domxref("SVGForeignObjectElement.y")}} {{ReadOnlyInline}}
    • : An {{domxref("SVGAnimatedLength")}} corresponding to the {{SVGAttr("x")}} attribute of the given {{SVGElement("foreignObject")}} element.
  • {{domxref("SVGForeignObjectElement.width")}} {{ReadOnlyInline}}
    • : An {{domxref("SVGAnimatedLength")}} corresponding to the {{SVGAttr("width")}} attribute of the given {{SVGElement("foreignObject")}} element.
  • {{domxref("SVGForeignObjectElement.height")}} {{ReadOnlyInline}}
    • : An {{domxref("SVGAnimatedLength")}} corresponding to the {{SVGAttr("height")}} attribute of the given {{SVGElement("foreignObject")}} element.

Instance methods

This interface has no methods but inherits methods from its parent, {{domxref("SVGGraphicsElement")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{SVGElement("foreignObject")}}