summaryrefslogtreecommitdiff
path: root/tests/fixtures/reftests/svg2/gradient-01-b.svg
blob: c9641da6809fa2ad33a6e919cd86944315c88f90 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<svg id="svg-root"
     width="100%" height="100%" viewBox="0 0 1000 5000"
     xmlns:svg="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:html="http://www.w3.org/1999/xhtml">
  <defs id="defs">
    <!-- Only cx/cy/r for a plain SVG1.1-like gradient. -->
    <radialGradient
       id="plain_svg11_gradient"
       gradientUnits="userSpaceOnUse"

       cx="500" cy="500" r="200">
      <stop style="stop-color:#aa88ff" offset="0%"/>
      <stop style="stop-color:#ffddcc" offset="50%"/>
      <stop style="stop-color:#bbffee" offset="100%"/>
    </radialGradient>


    <!-- cx/cy/r/fx/fy with the focus point inside the circle, for a "full" SVG1.1 gradient. -->
    <radialGradient
       id="full_svg11_gradient"
       gradientUnits="userSpaceOnUse"

       cx="500" cy="1500" r="200"
       fx="600" fy="1600">
      <stop style="stop-color:#aa88ff" offset="0%"/>
      <stop style="stop-color:#ffddcc" offset="50%"/>
      <stop style="stop-color:#bbffee" offset="100%"/>
    </radialGradient>


    <!-- cx/cy/r/fx/fy with the focus point outside the circle. -->
    <radialGradient
       id="full_svg11_outside_gradient"
       gradientUnits="userSpaceOnUse"

       cx="500" cy="2500" r="200"
       fx="800" fy="2500">
      <stop style="stop-color:#aa88ff" offset="0%"/>
      <stop style="stop-color:#ffddcc" offset="50%"/>
      <stop style="stop-color:#bbffee" offset="100%"/>
    </radialGradient>


    <!-- cx/cy/r/fx/fy/fr inside the circle. -->
    <radialGradient
       id="svg2_inside_gradient"
       gradientUnits="userSpaceOnUse"

       cx="500" cy="3500"  r="200"
       fx="600" fy="3600" fr="50">
      <stop style="stop-color:#aa88ff" offset="0%"/>
      <stop style="stop-color:#ffddcc" offset="50%"/>
      <stop style="stop-color:#bbffee" offset="100%"/>
    </radialGradient>


    <!-- cx/cy/r/fx/fy/fr outside the circle. -->
    <radialGradient
       id="svg2_outside_gradient"
       gradientUnits="userSpaceOnUse"

       cx="500" cy="4500"  r="200"
       fx="800" fy="4500" fr="50">
      <stop style="stop-color:#aa88ff" offset="0%"/>
      <stop style="stop-color:#ffddcc" offset="50%"/>
      <stop style="stop-color:#bbffee" offset="100%"/>
    </radialGradient>
  </defs>
  <g id="layer1">
    <rect
       id="rec1" style="fill:url(#plain_svg11_gradient)"
       width="900" height="800"
       x="50" y="100" />

    <rect
       id="rec2" style="fill:url(#full_svg11_gradient)"
       width="900" height="800"
       x="50" y="1100" />

    <rect
       id="rec3" style="fill:url(#full_svg11_outside_gradient)"
       width="900" height="800"
       x="50" y="2100" />

    <rect
       id="rec4" style="fill:url(#svg2_inside_gradient)"
       width="900" height="800"
       x="50" y="3100" />

    <rect
       id="rec5" style="fill:url(#svg2_outside_gradient)"
       width="900" height="800"
       x="50" y="4100" />


    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle1"
       cx="500" cy="500" r="200" />
    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle2"
       cx="500" cy="1500" r="200" />
    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle2_2"
       cx="600" cy="1600" r="1" />
    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle3"
       cx="500" cy="2500" r="200" />
    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle3_2"
       cx="800" cy="2500" r="1" />
    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle4"
       cx="500" cy="3500" r="200" />
    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle4_2"
       cx="600" cy="3600" r="50" />
    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle5"
       cx="500" cy="4500" r="200" />
    <circle
       style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
       id="circle5_2"
       cx="800" cy="4500" r="50" />
  </g>
</svg>