Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/painting/marker-007.svg - WPT Dashboard Interop Dashboard
<svg width="300" height="300"
<!--
A 'marker' element with 'display' set to 'none' on that
element or any ancestor is rendered when referenced by another element.
-->
<html:link rel="match" href="marker-007-ref.svg"/>
<html:meta name="assert" content="Test marker element with 'display' set to 'none' is rendered when referenced."/>
<html:meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-10"/>
<defs>
<marker id="testMarker" markerWidth="100" markerHeight="100" display="none">
<path d="M 0 0 L 200 200 L 0 150 z" fill="green" />
</marker>
<g display="none">
<marker id="testMarker2" markerWidth="100" markerHeight="100">
<path d="M 0 0 L 200 200 L 0 150 z" fill="green" />
</marker>
</g>
</defs>
<path d="M 0 0 L 25 25" marker-end="url(#testMarker)" />
<path d="M 100 0 L 125 25" marker-end="url(#testMarker2)" />
</svg>