summaryrefslogtreecommitdiffstats
path: root/dom/svg/test/bounds-helper.svg
blob: aaa87ee6862e6110c6cedd3d54ad89feb5c4799e (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
75
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="750"
     xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
  <style type="text/css">
text { font: 20px monospace; }
  </style>

<g id="g">
  <svg id="svg1" x="10" y="10" width="25" height="30"/>
  <svg id="svg2" width="1" height="1" overflow="visible">
    <rect width="2" height="2" fill="yellow"/>
  </svg>
  <svg id="svg3" width="1" height="1" overflow="hidden">
    <rect width="2" height="2" fill="yellow"/>
  </svg>
  <text id="text1" x="25" y="25">abc</text>
  <text id="text1a" x="85" y="25" stroke="black" stroke-width="4">abc</text>
  <rect id="rect1" x="50" y="50" width="50" height="50" fill="green"/>
  <rect id="rect1a" x="50" y="50" width="50" height="50" fill="none" stroke-width="4" stroke="yellow"/>
  <text id="text2" x="125" y="25">abc</text>
  <text id="text2a" x="185" y="25" stroke="black" stroke-width="10">abc</text>
  <g transform="rotate(45 175 75)">
    <rect id="rect2" x="150" y="50" width="50" height="50" fill="yellow"/>
    <rect id="rect2a" x="150" y="50" width="50" height="50" fill="none" stroke-width="4" stroke="blue"/>
    <text id="text3" x="150" y="50" text-anchor="middle">abc</text>
  </g>
  <g transform="scale(2)">
    <rect id="rect3" x="25" y="80" width="50" height="50" fill="green"/>
    <rect id="rect3a" x="25" y="80" width="50" height="50" fill="none" stroke-width="4" stroke="blue"/>
    <rect id="rect3b" vector-effect="non-scaling-stroke" x="100" y="100" width="25" height="25" fill="orange" stroke-width="4" stroke="yellow"/>
    <image id="i" x="10" y="10" width="100" height="100"/>
  </g>
  <g transform="scale(2) rotate(45 175 75)">
    <rect id="rect4" x="150" y="50" width="50" height="50" fill="yellow"/>
    <rect id="rect4a" x="150" y="50" width="50" height="50" fill="none" stroke-width="4" stroke="blue"/>
  </g>
  <text id="text4" x="185" y="25"/>
  <g id="g2">
    <rect x="100" y="100" width="50" height="50" fill="pink"/>
    <text x="200" y="200"/>
  </g>
  <circle id="nonScalingStrokedCircle1" cx="0" cy="0" r="10"
          transform="translate(45 130) scale(3 -2)"
          fill="none" stroke="gray" stroke-width="10"
          vector-effect="non-scaling-stroke"/>
  <ellipse id="nonScalingStrokedEllipse1" cx="20" cy="-10" rx="5" ry="5"
           transform="matrix(0 3 -2 0 0 0)"
           fill="none" stroke="steelblue" stroke-width="10"
           vector-effect="non-scaling-stroke" />
  <line id="nonScalingStrokedLine1" x1="120" y1="5" x2="120" y2="10"
        transform="scale(2 3)"
        stroke-width="10" stroke-linecap="round" stroke="orange"
        vector-effect="non-scaling-stroke" />
  <line id="nonScalingStrokedLine2" x1="130" y1="5" x2="140" y2="5"
        transform="rotate(45 260 15) scale(2 3)"
        stroke-width="10" stroke-linecap="square" stroke="crimson"
        vector-effect="non-scaling-stroke" />
  <line id="nonScalingStrokedLine3" x1="140" y1="5" x2="150" y2="5"
        transform="rotate(45 280 15) scale(2 3)"
        stroke-width="10" stroke-linecap="butt" stroke="indigo"
        vector-effect="non-scaling-stroke" />

  <marker id="marker1" markerWidth="100" markerHeight="100"
          refX="0" refY="50" markerUnits="userSpaceOnUse">
    <line x1="0" y1="50" x2="50" y2="100" stroke="aqua" stroke-width="20"
          transform="rotate(-45 0 50)" />
  </marker>
  <line id="shapeWithMarker1" x1="160" y1="130" x2="170" y2="130"
        stroke="black" stroke-width="3" marker-end="url(#marker1)"/>

  <line id="rotatedLine1" x1="160" y1="150" x2="180" y2="170"
        stroke="darkmagenta" stroke-width="10"
        transform="rotate(-45 160 150)" />
</g>
</svg>