Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/painting/reftests/paint-context-004.svg - WPT Dashboard Interop Dashboard
<svg id="svg-root"
width="100%" height="100%" viewBox="0 0 120 90"
<g id="testmeta">
<title>Paint: 'context-fill' and 'context-stroke' with paint server</title>
<html:link rel="author"
title="Stefan Zager"
href="mailto:szager@chromium.org"/>
<html:link rel="help"
<html:link rel="match" href="paint-context-004-ref.svg" />
</g>
<defs>
<pattern id="grid" x="0" y="0" width="0.125" height="0.125" stroke="blue" stroke-width="0.03125" patternContentUnits="objectBoundingBox">
<path d="M 0,0.0625 h 0.125"/>
<path d="M 0.0625,0 v 0.125"/>
</pattern>
<g id="rects">
<rect x="0" y="0" width="32" height="64" fill="context-fill"/>
<rect x="32" y="6" width="32" height="58" fill="context-fill"/>
</g>
</defs>
<g id="test-body-content">
<use x="18" y="18" fill="url(#grid)" xlink:href="#rects"/>
</g>
</svg>