Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / batik / paints / gradientLimit.svg
blobdb6aaec04bfad01d6f39afe7703dfa68da2f99ea
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
5 <!--
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
22 -->
23 <!-- ========================================================================= -->
24 <!-- Limit test on gradients. -->
25 <!-- -->
26 <!-- @author vhardy@apache.org -->
27 <!-- @version $Id: gradientLimit.svg 475685 2006-11-16 11:16:05Z cam $ -->
28 <!-- ========================================================================= -->
29 <?xml-stylesheet type="text/css" href="../resources/test.css" ?>
30 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500">
31 <title>Limit test on Gradients</title>
33 <text x="50%" y="45" class="title">Gradient Limit Test</text>
35 <g id="testContent">
36 <g id="closeOffsetsLinear">
37 <title>Close Offsets on linearGradient</title>
38 <desc>The last two offsets of this linearGradient are
39 very close (0.000001) to one-another</desc>
40 <linearGradient id="closeOffsetsLinearGradient" gradientUnits="objectBoundingBox" y1="0" x1="0" x2="0" y2=".1">
41 <stop offset="0" style="stop-color:crimson"/>
42 <stop offset="0.999999" style="stop-color:gold"/>
43 <stop offset="1" style="stop-color:crimson"/>
44 </linearGradient>
45 <rect fill="url(#closeOffsetsLinearGradient)" x="35" y="80" width="80" height="40" />
46 <text class="legend" x="75" y="135">Two close offsets</text>
47 <text class="legend" x="75" y="150">&lt;linearGradient&gt;</text>
48 </g>
50 <g id="closeOffsetsLinear2" transform="translate(150, 0)">
51 <title>Close Offsets on linearGradient</title>
52 <desc>The last two offsets of this linearGradient are
53 very close (0.00000001) to one-another, with a
54 difference below the single precision floating
55 point</desc>
56 <linearGradient id="closeOffsetsLinearGradient2" gradientUnits="objectBoundingBox" y1="0" x1="0" x2="0" y2=".1">
57 <stop offset="0" style="stop-color:crimson"/>
58 <stop offset="0.99999999" style="stop-color:gold"/>
59 <stop offset="1" style="stop-color:crimson"/>
60 </linearGradient>
61 <rect fill="url(#closeOffsetsLinearGradient2)" x="35" y="80" width="80" height="40" />
62 <text class="legend" x="75" y="135">Two very close offsets</text>
63 <text class="legend" x="75" y="150">&lt;linearGradient&gt;</text>
64 </g>
66 <g id="closeOffsetsRadial" transform="translate(0, 100)">
67 <title>Close Offsets on radialGradient</title>
68 <desc>The last two offsets of this radialGradient are
69 very close (0.000001) to one-another</desc>
70 <radialGradient id="closeOffsetsRadialGradient" gradientUnits="objectBoundingBox" r=".1">
71 <stop offset="0" style="stop-color:crimson"/>
72 <stop offset="0.999999" style="stop-color:gold"/>
73 <stop offset="1" style="stop-color:crimson"/>
74 </radialGradient>
75 <rect fill="url(#closeOffsetsRadialGradient)" x="35" y="80" width="80" height="40" />
76 <text class="legend" x="75" y="135">Two close offsets</text>
77 <text class="legend" x="75" y="150">&lt;radialGradient&gt;</text>
78 </g>
80 <g id="closeOffsetsRadial2" transform="translate(150, 100)">
81 <title>Close Offsets on radialGradient</title>
82 <desc>The last two offsets of this radialGradient are
83 very close (0.00000001) to one-another</desc>
84 <radialGradient id="closeOffsetsRadialGradient2" gradientUnits="objectBoundingBox" r=".1">
85 <stop offset="0" style="stop-color:crimson"/>
86 <stop offset="0.99999999" style="stop-color:gold"/>
87 <stop offset="1" style="stop-color:crimson"/>
88 </radialGradient>
89 <rect fill="url(#closeOffsetsRadialGradient2)" x="35" y="80" width="80" height="40" />
90 <text class="legend" x="75" y="135">Two very close offsets</text>
91 <text class="legend" x="75" y="150">&lt;radialGradient&gt;</text>
92 </g>
94 <g id="closeControlsLinear" transform="translate(300, 0)">
95 <title>Close control points on linearGradient</title>
96 <desc>The y coordinates on the gradient are close
97 (0.00000001) to one-another</desc>
98 <linearGradient id="closeControlsLinearGradient" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="0.00000001">
99 <stop offset="0" stop-color="gold"/>
100 <stop offset="1" stop-color="crimson"/>
101 </linearGradient>
102 <rect fill="url(#closeControlsLinearGradient)" x=".35" y=".8" width=".8" height=".4" transform="scale(100)"/>
103 <text class="legend" x="75" y="135">Close control points</text>
104 <text class="legend" x="75" y="150">&lt;linearGradient&gt;</text>
105 </g>
107 <g id="smallRadiusRadial" transform="translate(300, 100)">
108 <title>Small radius on radialGradient</title>
109 <desc>The radialGradient has a very small
110 (0.00000001) radius</desc>
111 <radialGradient id="smallRadiusRadialGradient" gradientUnits="objectBoundingBox" r="0.00000001">
112 <stop offset="0" stop-color="gold"/>
113 <stop offset="1" stop-color="crimson"/>
114 </radialGradient>
115 <rect fill="url(#smallRadiusRadialGradient)" x=".35" y=".8" width=".8" height=".4" transform="scale(100)"/>
116 <text class="legend" x="75" y="135">Small Radius</text>
117 <text class="legend" x="75" y="150">&lt;radialGradient&gt;</text>
118 </g>
119 </g>
121 <!-- ============================================================= -->
122 <!-- Batik sample mark -->
123 <!-- ============================================================= -->
124 <use xlink:href="../resources/batikLogo.svg#Batik_Tag_Box" />
126 </svg>