aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/svg/element/tref/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/svg/element/tref/index.html')
-rw-r--r--files/pt-br/web/svg/element/tref/index.html123
1 files changed, 123 insertions, 0 deletions
diff --git a/files/pt-br/web/svg/element/tref/index.html b/files/pt-br/web/svg/element/tref/index.html
new file mode 100644
index 0000000000..3bb3de6878
--- /dev/null
+++ b/files/pt-br/web/svg/element/tref/index.html
@@ -0,0 +1,123 @@
+---
+title: tref
+slug: Web/SVG/Element/tref
+tags:
+ - Conteúdo Textual
+ - Elemento
+ - Referencia
+ - SVG
+translation_of: Web/SVG/Element/tref
+---
+<div>{{SVGRef}}</div>
+
+<p>O conteúdo textual para o {{ SVGElement("text") }} podem ser dados de caracteres diretamente embedados com o elemento {{ SVGElement("text") }} ou o conteúdo de dados de caracteres de um elemento referenciado, onde a referência é especificada com um elemento <code>tref</code>.</p>
+
+<h2 id="Contexto_de_uso">Contexto de uso</h2>
+
+<p>{{svginfo}}</p>
+
+<h2 id="Exemplo">Exemplo</h2>
+
+<pre class="brush: xml">&lt;svg width="100%" height="100%" viewBox="0 0 1000 300"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"&gt;
+ &lt;defs&gt;
+ &lt;text id="ReferencedText"&gt;
+ Referenced character data
+ &lt;/text&gt;
+ &lt;/defs&gt;
+
+ &lt;text x="100" y="100" font-size="45" &gt;
+ Inline character data
+ &lt;/text&gt;
+
+  &lt;text x="100" y="200" font-size="45" fill="red" &gt;
+ &lt;tref xlink:href="#ReferencedText"/&gt;
+ &lt;/text&gt;
+
+ &lt;!-- Show outline of canvas using 'rect' element --&gt;
+ &lt;rect x="1" y="1" width="998" height="298"
+ fill="none" stroke-width="2" /&gt;
+&lt;/svg&gt;
+</pre>
+
+<h2 id="Atributos">Atributos</h2>
+
+<h3 id="Atributos_globais">Atributos globais</h3>
+
+<ul>
+ <li><a href="/pt-BR/SVG/Attribute#ConditionalProccessing" title="en/SVG/Attribute#ConditionalProccessing">Atributos de processamento condicional</a> »</li>
+ <li><a href="/pt-BR/SVG/Attribute#Core" title="en/SVG/Attribute#Core">Atributos principais</a> »</li>
+ <li><a href="/pt-BR/SVG/Attribute#GraphicalEvent" title="en/SVG/Attribute#GraphicalEvent">Atributos de eventos gráficos</a> »</li>
+ <li><a href="/pt-BR/SVG/Attribute#Presentation" title="en/SVG/Attribute#Presentation">Atributos de apresentação</a> »</li>
+ <li><a href="/pt-BR/SVG/Attribute#XLink" title="en/SVG/Attribute#XLink">Atributos XLink</a> »</li>
+ <li>{{ SVGAttr("class") }}</li>
+ <li>{{ SVGAttr("style") }}</li>
+ <li>{{ SVGAttr("externalResourcesRequired") }}</li>
+</ul>
+
+<h3 id="Atributos_específicos">Atributos específicos</h3>
+
+<ul>
+ <li>{{ SVGAttr("xlink:href") }}</li>
+</ul>
+
+<h2 id="Interface_DOM">Interface DOM</h2>
+
+<p>Este elemento implementa a interface do <code><a href="/pt-BR/DOM/SVGTRefElement" title="en/DOM/SVGTRefElement">SVGTRefElement</a></code>.</p>
+
+<h2 id="Compatibilidade_dos_navegadores">Compatibilidade dos navegadores</h2>
+
+<p>{{ CompatibilityTable() }}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th scope="col">Recurso</th>
+ <th scope="col">Chrome</th>
+ <th scope="col">Firefox (Gecko)</th>
+ <th scope="col">Internet Explorer</th>
+ <th scope="col">Opera</th>
+ <th scope="col">Safari</th>
+ </tr>
+ <tr>
+ <td>Suporte básico</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Recurso</th>
+ <th>Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Phone</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Suporte básico</td>
+ <td>{{ CompatUnknown() }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<h2 id="Veja_também">Veja também</h2>
+
+<ul>
+ <li>{{ SVGElement("text") }}</li>
+</ul>