Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/painting/currentColor-override-pserver-stroke.svg
<metadata>
<link xmlns="http://www.w3.org/1999/xhtml" rel="author" title="Dan Glastonbury" href="mailto:dglastonbury@mozilla.com"/>
<link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="currentColor-override-pserver-stroke-ref.svg"/>
<meta xmlns="http://www.w3.org/1999/xhtml" name="assert" content="pattern inherits stroke color via currentcolor."/>
</metadata>
<defs>
<pattern id="MyPattern" patternUnits="userSpaceOnUse"
x="5" y ="5" width="10" height="10" color="red" stroke="currentcolor">
<circle color="limegreen" stroke="inherit" stroke-width="5%" cx="5" cy="5" r="5" />
</pattern>
</defs>
<circle stroke="black" fill="url(#MyPattern)" cx="50" cy="50" r="40" />
</svg>