aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/svg/element/foreignobject
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/svg/element/foreignobject
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/svg/element/foreignobject')
-rw-r--r--files/ja/web/svg/element/foreignobject/index.html113
1 files changed, 113 insertions, 0 deletions
diff --git a/files/ja/web/svg/element/foreignobject/index.html b/files/ja/web/svg/element/foreignobject/index.html
new file mode 100644
index 0000000000..00e38530a5
--- /dev/null
+++ b/files/ja/web/svg/element/foreignobject/index.html
@@ -0,0 +1,113 @@
+---
+title: <foreignObject>
+slug: Web/SVG/Element/foreignObject
+tags:
+ - Element
+ - Reference
+ - SVG
+translation_of: Web/SVG/Element/foreignObject
+---
+<div>{{SVGRef}}</div>
+
+<p><strong><code>&lt;foreignObject&gt;</code></strong> <a href="/ja/docs/Web/SVG">SVG</a> 要素は、異なるユーザーエージェントによって描画されるグラフィックコンテンツを持つ外部XML名前空間を含めることを可能にします。含まれた外部グラフィックコンテンツは、SVG 変換や合成の対象となります。</p>
+
+<p>The contents of <code>foreignObject</code> are assumed to be from a different namespace. Any SVG elements within a <code>foreignObject</code> will not be drawn, except in the situation where a properly defined SVG subdocument with a proper <code>xmlns</code> attribute specification is embedded recursively. One situation where this can occur is when an SVG document fragment is embedded within another non-SVG document fragment, which in turn is embedded within an SVG document fragment (e.g., an SVG document fragment contains an XHTML document fragment which in turn contains yet another SVG document fragment).</p>
+
+<p>Usually, a <code>foreignObject</code> will be used in conjunction with the {{SVGElement("switch")}} element and the {{SVGAttr("requiredExtensions")}} attribute to provide proper checking for user agent support and provide an alternate rendering in case user agent support is not available.</p>
+
+<h2 id="利用可能な場所">利用可能な場所</h2>
+
+<p>{{svginfo}}</p>
+
+<h2 id="例">例</h2>
+
+<pre class="brush: xml">&lt;svg width="400px" height="300px" viewBox="0 0 400 300"
+ xmlns="http://www.w3.org/2000/svg"&gt;
+ &lt;desc&gt;This example uses the 'switch' element to provide a
+ fallback graphical representation of a paragraph, if
+ XHTML is not supported.&lt;/desc&gt;
+
+ &lt;!-- The 'switch' element will process the first child element
+ whose testing attributes evaluate to true.--&gt;
+ &lt;switch&gt;
+
+ &lt;!-- Process the embedded XHTML if the requiredExtensions attribute
+ evaluates to true (i.e., the user agent supports XHTML
+ embedded within SVG). --&gt;
+ &lt;foreignObject width="100" height="50"
+ requiredExtensions="http://www.w3.org/1999/xhtml"&gt;
+ &lt;!-- XHTML content goes here --&gt;
+ &lt;body xmlns="http://www.w3.org/1999/xhtml"&gt;
+ &lt;p&gt;Here is a paragraph that requires word wrap&lt;/p&gt;
+ &lt;/body&gt;
+ &lt;/foreignObject&gt;
+
+ &lt;!-- Else, process the following alternate SVG.
+ Note that there are no testing attributes on the 'text' element.
+ If no testing attributes are provided, it is as if there
+ were testing attributes and they evaluated to true.--&gt;
+ &lt;text font-size="10" font-family="Verdana"&gt;
+ &lt;tspan x="10" y="10"&gt;Here is a paragraph that&lt;/tspan&gt;
+ &lt;tspan x="10" y="20"&gt;requires word wrap.&lt;/tspan&gt;
+ &lt;/text&gt;
+ &lt;/switch&gt;
+&lt;/svg&gt;
+</pre>
+
+<h2 id="属性">属性</h2>
+
+<h3 id="グローバル属性">グローバル属性</h3>
+
+<ul>
+ <li><a href="/ja/docs/Web/SVG/Attribute#Conditional_processing_attributes">条件処理属性</a></li>
+ <li><a href="/ja/docs/Web/SVG/Attribute#Core_attributes">コア属性</a></li>
+ <li><a href="/ja/docs/Web/SVG/Attribute#Graphical_event_attributes">グラフィカルイベント属性</a></li>
+ <li><a href="/ja/docs/Web/SVG/Attribute#Presentation_attributes">プレゼンテーション属性</a></li>
+ <li>{{SVGAttr("class")}}</li>
+ <li>{{SVGAttr("style")}}</li>
+ <li>{{SVGAttr("externalResourcesRequired")}}</li>
+ <li>{{SVGAttr("transform")}}</li>
+</ul>
+
+<h3 id="専用属性">専用属性</h3>
+
+<ul>
+ <li>{{SVGAttr("x")}}</li>
+ <li>{{SVGAttr("y")}}</li>
+ <li>{{SVGAttr("width")}}</li>
+ <li>{{SVGAttr("height")}}</li>
+</ul>
+
+<h2 id="DOM_インターフェイス">DOM インターフェイス</h2>
+
+<p>この要素は {{domxref("SVGForeignObjectElement")}} インターフェイスを実装します。</p>
+
+<h2 id="仕様">仕様</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('SVG2', 'embedded.html#ForeignObjectElement', '&lt;foreignObject&gt;')}}</td>
+ <td>{{Spec2('SVG2')}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName('SVG1.1', 'extend.html#ForeignObjectElement', '&lt;foreignObject&gt;')}}</td>
+ <td>{{Spec2('SVG1.1')}}</td>
+ <td>初期の定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザー互換性">ブラウザー互換性</h2>
+
+
+
+<p>{{Compat("svg.elements.foreignObject")}}</p>