summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/painting/reftests/paint-order-001-ref.svg
blob: 7822a80b942fee54a87106d7def13429454cc26e (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<svg id="svg-root"
  width="100%" height="100%" viewBox="0 0 480 360"
  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: 'paint-order'</title>
    <html:link rel="author"
          title="Tavmjong Bah"
          href="http://tavmjong.free.fr"/>
  </g>

  <style id="test-font" type="text/css">
    /* Standard Font (if needed). */
    @font-face {
      font-family: FreeSans;
      src: url("../fonts/FreeSans.woff") format("woff");
    }
    text {
      font-family: FreeSans, sans-serif;
      text-anchor: middle;
      fill: black;
    }
    #title {
      font-size: 24px;
    }
    .label {
      font-size: 18px;
    }
  </style>

  <defs>
    <rect id="rectangle" width="2" height="2" style="fill:blue" />
    <marker id="marker" style="overflow:visible" markerWidth="2" markerHeight="2" orient="auto" viewBox="0 0 2 2" refX="1" refY="1">
      <use xlink:href="#rectangle"/>
    </marker>
    <path id="path" d="m -25,-25 0,50 50,0 0,-50 z"/>
  </defs>

  <g id="test-reference" font-size="16" style="fill:lavender;stroke:green;stroke-width:5px;marker:url(#marker)">
    <g transform="translate(120,120)">
      <use xlink:href="#path"/>
    </g>
    <g transform="translate(240,120)">
      <use xlink:href="#path"/>
    </g>
    <g transform="translate(360,120)">
      <use xlink:href="#path"/>
    </g>
    <g transform="translate(120,220)">
      <use xlink:href="#path"/>
    </g>
    <g transform="translate(240,220)">
      <use xlink:href="#path" style="marker:none"/>
      <use xlink:href="#path" style="stroke:none"/>
    </g>
    <g transform="translate(360,220)">
      <use xlink:href="#path" style="stroke:none"/>
      <use xlink:href="#path" style="marker:none"/>
    </g>
    <g transform="translate(120,320)">
      <use xlink:href="#path"/>
    </g>
    <g transform="translate(240,320)">
      <use xlink:href="#path"/>
      <use xlink:href="#path" style="stroke:none;marker:none"/>
    </g>
    <g transform="translate(360,320)">
      <use xlink:href="#path" style="stroke:none"/>
      <use xlink:href="#path" style="marker:none"/>
    </g>
  </g>

</svg>