Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
SVGForeignObjectElement インターフェイスは、<foreignObject> 要素のプロパティや、操作するためのメソッドへのアクセス手段を提供します。
EventTarget Node Element SVGElement SVGGraphicsElement SVGForeignObjectElementこのインターフェイスには、親である SVGGraphicsElement から継承したプロパティもあります。
SVGForeignObjectElement.x 読取専用SVGAnimatedLength で、指定された <foreignObject> 要素の x 属性に対応します。
SVGForeignObjectElement.y 読取専用SVGAnimatedLength で、指定された <foreignObject> 要素の y 属性に対応します。
SVGForeignObjectElement.width 読取専用SVGAnimatedLength で、指定された <foreignObject> 要素の width 属性に対応します。
SVGForeignObjectElement.height 読取専用SVGAnimatedLength で、指定された <foreignObject> 要素の height 属性に対応します。
このインターフェイスは固有のメソッドを実装していませんが、親である SVGGraphicsElement から継承したメソッドがあります。
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGForeignObjectElement |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年3月31日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.