aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/svg/element/foreignobject/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/es/web/svg/element/foreignobject/index.html')
-rw-r--r--files/es/web/svg/element/foreignobject/index.html133
1 files changed, 0 insertions, 133 deletions
diff --git a/files/es/web/svg/element/foreignobject/index.html b/files/es/web/svg/element/foreignobject/index.html
deleted file mode 100644
index ea64360cbb..0000000000
--- a/files/es/web/svg/element/foreignobject/index.html
+++ /dev/null
@@ -1,133 +0,0 @@
----
-title: foreignObject
-slug: Web/SVG/Element/foreignObject
-translation_of: Web/SVG/Element/foreignObject
----
-<div>{{SVGRef}}</div>
-
-<p>El elemento <code>foreignObject</code> permite la inclusión de un namespace XML externo que tiene su contenido gráfico dibujado por un diferente user-agent. El contenido gráfico externo incluido está sujeto a las transformaciones SVG y composición.</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="Usage_context">Usage context</h2>
-
-<p>{{svginfo}}</p>
-
-<h2 id="Example">Example</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="<span id="the-code"><span class="s">http://www.w3.org/1999/xhtml</span></span>"&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="Attributes">Attributes</h2>
-
-<h3 id="Global_attributes">Global attributes</h3>
-
-<ul>
- <li><a href="/en-US/docs/SVG/Attribute#ConditionalProccessing" title="en/SVG/Attribute#ConditionalProccessing">Conditional processing attributes</a> »</li>
- <li><a href="/en-US/docs/SVG/Attribute#Core" title="en/SVG/Attribute#Core">Core attributes</a> »</li>
- <li><a href="/en-US/docs/SVG/Attribute#GraphicalEvent" title="en/SVG/Attribute#GraphicalEvent">Graphical event attributes</a> »</li>
- <li><a href="/en-US/docs/SVG/Attribute#Presentation" title="en/SVG/Attribute#Presentation ">Presentation attributes</a> »</li>
- <li>{{ SVGAttr("class") }}</li>
- <li>{{ SVGAttr("style") }}</li>
- <li>{{ SVGAttr("externalResourcesRequired") }}</li>
- <li>{{ SVGAttr("transform") }}</li>
-</ul>
-
-<h3 id="Specific_attributes">Specific attributes</h3>
-
-<ul>
- <li>{{ SVGAttr("x") }}</li>
- <li>{{ SVGAttr("y") }}</li>
- <li>{{ SVGAttr("width") }}</li>
- <li>{{ SVGAttr("height") }}</li>
-</ul>
-
-<h2 id="DOM_Interface">DOM Interface</h2>
-
-<p>This element implements the <code><a href="/en-US/docs/DOM/SVGForeignObjectElement" title="en/DOM/SVGForeignObjectElement">SVGForeignObjectElement</a></code> interface.</p>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>1.0</td>
- <td>1.9</td>
- <td>{{ CompatNo() }}</td>
- <td>2.0</td>
- <td>3.0</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatUnknown() }}</td>
- <td>{{ CompatUnknown() }}</td>
- <td>2.0</td>
- <td>{{ CompatNo() }}</td>
- <td>2.0</td>
- <td>3.0</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>The chart is based on <a href="/en-US/docs/SVG/Compatibility_sources" title="en/SVG/Compatibility sources">these sources</a>.</p>