The xlink:arcrole attribute specifies a contextual role for the element and corresponds to the RDF Primer notion of a property.
This contextual role can differ from the meaning of the resource when taken outside the context of this particular arc. For example, a resource might generically represent a "person," but in the context of a particular arc it might have the role of "mother" and in the context of a different arc it might have the role of "daughter."
You can use this attribute with the following SVG elements:
- a
- animate
- animateMotion
- animateTransform
- feImage
- filter
- image
- linearGradient
- mpath
- pattern
- radialGradient
- script
- set
- textPath
- use
Usage notes
<table class="properties"> <tbody> <tr> <th scope="row">Value</th> <td> <code ><a href="/en-US/docs/Web/SVG/Guides/Content_type#iri"><iri></a></code > </td> </tr> <tr> <th scope="row">Default value</th> <td><em>None</em></td> </tr> <tr> <th scope="row">Animatable</th> <td>No</td> </tr> </tbody> </table>
<iri>- : This value specifies an IRI reference that identifies some resource that describes the intended property.
Specifications
See also
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
