summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/painting/reftests/paint-context-004.svg
blob: 669d44de46bc0f06c979cf26e4db30657dad578e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<svg id="svg-root"
  width="100%" height="100%" viewBox="0 0 120 90"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:html="http://www.w3.org/1999/xhtml">
  <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"
          href="https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint"/>
    <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>