Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1 / pservers-grad-14-b.svg
blob828f9a3b64a5a177095f0ab6ee3f470afb66064c
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
4 <!--======================================================================-->
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, Institut National de Recherche en =-->
7 <!--= Informatique et en Automatique, Keio University). All Rights =-->
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
9 <!--======================================================================-->
10 <!-- ===================================================================== -->
11 <!-- -->
12 <!-- pservers-grad-16-b.svg -->
13 <!-- -->
14 <!-- Tests the spreadMethod attributes for gradients -->
15 <!-- -->
16 <!-- Author : Corel SVG Viewer QA team 01-05-2003 -->
17 <!-- Revised by: Benoit Bezaire -->
18 <!-- -->
19 <!--======================================================================-->
21 <SVGTestCase
22 xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/"
23 xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"
24 owner="BB" reviewer="CL" desc="Tests the spreadMethod attributes
25 for gradients" status="accepted" version="$Revision: 1.7 $" testname="$RCSfile: pservers-grad-14-b.svg,v $">
26 <OperatorScript>
27 <Paragraph>The intent of this file is to test the 4 allowed spread methods for linear and radial gradients.
28 The 4 values (pad, reflect, repeat and default) are available for both types of gradients.
29 On the left side are the linear gradient results, and on the right, the radial results.
30 The UA should render a result equivalent to the reference image.
31 </Paragraph>
32 </OperatorScript>
33 </SVGTestCase>
35 <title id="test-title">pservers-grad-16-b.svg</title>
36 <desc id="test-desc">Tests the spreadMethod attributes for gradients</desc>
38 <!--======================================================================-->
39 <!--Content of Test Case follows... =====================-->
40 <!--======================================================================-->
41 <defs>
42 <linearGradient id="lgSpreadPad" gradientUnits="userSpaceOnUse" y1="0" x1="50" y2="0" x2="100" spreadMethod="pad">
43 <stop offset="000%" stop-color="red"/>
44 <stop offset="100%" stop-color="gold"/>
45 </linearGradient>
47 <linearGradient id="lgSpreadReflect" gradientUnits="userSpaceOnUse" y1="0" x1="50" y2="0" x2="100" spreadMethod="reflect">
48 <stop offset="000%" stop-color="red"/>
49 <stop offset="100%" stop-color="gold"/>
50 </linearGradient>
52 <linearGradient id="lgSpreadRepeat" gradientUnits="userSpaceOnUse" y1="0" x1="50" y2="0" x2="100" spreadMethod="repeat">
53 <stop offset="000%" stop-color="red"/>
54 <stop offset="100%" stop-color="gold"/>
55 </linearGradient>
57 <linearGradient id="lgSpreadDefault" gradientUnits="userSpaceOnUse" y1="0" x1="50" y2="0" x2="100">
58 <stop offset="000%" stop-color="red"/>
59 <stop offset="100%" stop-color="gold"/>
60 </linearGradient>
62 <radialGradient id="rgSpreadPad" gradientUnits="objectBoundingBox" cx="0.5" cy="0.5" r="0.2" spreadMethod="pad">
63 <stop offset="000%" stop-color="red"/>
64 <stop offset="100%" stop-color="gold"/>
65 </radialGradient>
67 <radialGradient id="rgSpreadReflect" gradientUnits="objectBoundingBox" cx="0.5" cy="0.5" r="0.2" spreadMethod="reflect">
68 <stop offset="000%" stop-color="red"/>
69 <stop offset="100%" stop-color="gold"/>
70 </radialGradient>
72 <radialGradient id="rgSpreadRepeat" gradientUnits="objectBoundingBox" cx="0.5" cy="0.5" r="0.2" spreadMethod="repeat">
73 <stop offset="000%" stop-color="red"/>
74 <stop offset="100%" stop-color="gold"/>
75 </radialGradient>
77 <radialGradient id="rgSpreadDefault" gradientUnits="objectBoundingBox" cx="0.5" cy="0.5" r="0.2">
78 <stop offset="000%" stop-color="red"/>
79 <stop offset="100%" stop-color="gold"/>
80 </radialGradient>
81 </defs>
83 <text font-size="20" x="240" y="30" text-anchor="middle">Gradient 'spreadMethod' values</text>
85 <rect x="10" y="060" width="225" height="40" fill="url(#lgSpreadPad)" stroke="none"/>
86 <text font-size="16" x="10" y="55">spreadMethod="pad"</text>
88 <rect x="10" y="130" width="225" height="40" fill="url(#lgSpreadReflect)" stroke="none"/>
89 <text font-size="16" x="10" y="125">spreadMethod="reflect"</text>
91 <rect x="10" y="200" width="225" height="40" fill="url(#lgSpreadRepeat)" stroke="none"/>
92 <text font-size="16" x="10" y="195">spreadMethod="repeat"</text>
94 <rect x="10" y="270" width="225" height="40" fill="url(#lgSpreadDefault)" stroke="none"/>
95 <text font-size="16" x="10" y="265">spreadMethod="default"</text>
98 <rect x="245" y="060" width="225" height="40" fill="url(#rgSpreadPad)" stroke="none"/>
99 <text font-size="16" x="245" y="55">spreadMethod="pad"</text>
101 <rect x="245" y="130" width="225" height="40" fill="url(#rgSpreadReflect)" stroke="none"/>
102 <text font-size="16" x="245" y="125">spreadMethod="reflect"</text>
104 <rect x="245" y="200" width="225" height="40" fill="url(#rgSpreadRepeat)" stroke="none"/>
105 <text font-size="16" x="245" y="195">spreadMethod="repeat"</text>
107 <rect x="245" y="270" width="225" height="40" fill="url(#rgSpreadDefault)" stroke="none"/>
108 <text font-size="16" x="245" y="265">spreadMethod="default"</text>
110 <text id="revision" x="10" y="350" font-size="30" stroke="none" fill="black">$Revision: 1.7 $</text>
111 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
112 </svg>