Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / W3C-SVG-1.1-SE / styling-css-04-f.svg
blobe7a34879ea90821d0066d58ed50558f111e6d119
1 <svg version="1.1" baseProfile="full" 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">
2 <!--======================================================================-->
3 <!--= SVG 1.1 2nd Edition Test Case =-->
4 <!--======================================================================-->
5 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" reviewer="CL" author="BB" status="accepted" version="$Revision: 1.8 $" testname="$RCSfile: styling-css-04-f.svg,v $">
12 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/styling.html#StylingWithCSS">
13 <p>
14 This purpose of the file is to test some of the CSS2 selector syntax.
15 </p>
16 </d:testDescription>
17 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
18 <p>
19 A UA supporting CSS selectors should render an image identical to the referenced image.
20 </p>
22 </d:operatorScript>
23 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
24 <p>
25 The test is passed if a grid of 6x3 squares is shown, the colors in each column
26 are the same and are those of the reference image (blue, green, orange, gold, purple and silver)
27 </p>
28 <p>
29 For a full analysis of this test, please see
30 <a href="http://www.w3.org/Graphics/SVG/Test/styling-css-04-f/blow-by-blow.html" target="css">
31 this explanation.
32 </a>
33 </p>
34 </d:passCriteria>
35 </d:SVGTestCase>
36 <title id="test-title">$RCSfile: styling-css-04-f.svg,v $</title>
37 <defs>
38 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
39 <font-face-src>
40 <font-face-uri xlink:href="../custom/resources/SVGFreeSans.svg#ascii"/>
41 </font-face-src>
42 </font-face>
43 </defs>
44 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
45 <g fill="white">
46 <text x="240" y="35" font-size="20" text-anchor="middle">CSS selector test</text>
47 <defs>
48 <style type="text/css">
49 * {stroke:red; stroke-width:1;} /* 0 */
50 text {stroke:none; fill:black;} /* 1 */
51 rect {stroke:black; stroke-dasharray:none;} /* 1 */
52 #test-frame {fill:none} /* 100 */
53 g#alpha {fill:blue} /* 101 */
54 a#alpha {fill:red} /* 101 */
55 #alpha * rect {fill:green} /* 101 */
56 #alpha-2 &gt; rect {fill:orange} /* 101 */
57 #beta rect {fill:gold} /* 101 */
58 g#gamma * g * * rect {fill:silver} /* 103 */
59 g#gamma * * rect {fill:purple} /* 102 */
60 [stroke-width="1.0001"] {fill:blue} /* 10 */
61 g#delta rect[stroke-width="1.0002"] {fill:green} /* 112 */
62 g#delta &gt; rect[stroke-width="1.0003"] {fill:orange} /* 102 */
63 #delta + g &gt; * {fill:gold} /* 101 */
64 g#delta + g &gt; rect + rect {fill:purple} /* 104 */
65 #delta + g#epsilon * rect:first-child {fill:silver} /* 202 */
66 #zeta [cursor] {fill:blue} /* 110 */
67 g#zeta [cursor="help"] {fill:green} /* 111 */
68 g#zeta [rx~="3E"] {fill:orange} /* 111 */
69 g#epsilon + g [stroke-dasharray|="3.1415926"] {fill:gold} /* 112 */
70 g#epsilon + g &gt; rect.hello {fill:purple} /* 113 */
71 g#eta rect:first-child {fill:silver} /* 102 */
72 </style>
73 </defs>
74 <g id="alpha">
75 <rect x="30" y="70" width="67.5" height="67.5" id="A1"/>
76 <g id="alpha-1">
77 <rect x="100" y="70" width="67.5" height="67.5" id="B1"/>
78 </g>
79 <g id="alpha-2">
80 <rect x="170" y="70" width="67.5" height="67.5" id="C1"/>
81 </g>
82 </g>
83 <g id="beta">
84 <g>
85 <g>
86 <g>
87 <g>
88 <g>
89 <rect x="240" y="70" width="67.5" height="67.5" id="D1"/>
90 </g>
91 </g>
92 </g>
93 </g>
94 </g>
95 </g>
96 <g id="gamma">
97 <g>
98 <g>
99 <rect x="310" y="70" width="67.5" height="67.5" id="E1"/>
102 <rect x="380" y="70" width="67.5" height="67.5" id="F1"/>
103 </g>
104 </g>
105 </g>
106 </g>
107 </g>
108 <g id="delta">
109 <rect x="30" y="140" width="67.5" height="67.5" stroke-width="1.0001" id="A2"/>
110 <rect x="100" y="140" width="67.5" height="67.5" stroke-width="1.0002" id="B2"/>
111 <rect x="170" y="140" width="67.5" height="67.5" stroke-width="1.0003" id="C2"/>
112 </g>
113 <g id="epsilon">
114 <rect x="240" y="140" width="67.5" height="67.5" id="D2"/>
115 <rect x="310" y="140" width="67.5" height="67.5" id="E2"/>
117 <rect x="380" y="140" width="67.5" height="67.5" id="F2"/>
118 </g>
119 </g>
120 <g id="zeta">
121 <rect x="30" y="210" width="67.5" height="67.5" cursor="default" id="A3"/>
122 <rect x="100" y="210" width="67.5" height="67.5" cursor="help" id="B3"/>
123 <rect x="170" y="210" width="67.5" height="67.5" stroke-dasharray="5, 3.14" id="C3" style="fill:orange"/>
124 <rect x="240" y="210" width="67.5" height="67.5" rx="3E-6" stroke-dasharray="3.1415926,8" id="D3" style="fill:gold"/>
125 <rect x="310" y="210" width="67.5" height="67.5" class="hello" id="E3"/>
126 </g>
127 <g id="eta">
128 <rect x="380" y="210" width="67.5" height="67.5" id="F3"/>
129 </g>
130 <g id="labels" font-size="16" font-family="Arial, Helvetica, sans-serif">
131 <text x="64" y="60" text-anchor="middle">A</text>
132 <text x="133" y="60" text-anchor="middle">B</text>
133 <text x="200" y="60" text-anchor="middle">C</text>
134 <text x="270" y="60" text-anchor="middle">D</text>
135 <text x="340" y="60" text-anchor="middle">E</text>
136 <text x="410" y="60" text-anchor="middle">F</text>
137 <text x="20" y="113" text-anchor="middle">1</text>
138 <text x="20" y="183" text-anchor="middle">2</text>
139 <text x="20" y="253" text-anchor="middle">3</text>
140 </g>
141 </g>
142 </g>
143 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
144 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
145 </g>
146 <rect id="test-frame" x="1" y="1" width="478" height="358"/>
147 <!-- comment out this watermark once the test is approved -->
148 <!--<g id="draft-watermark">
149 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
150 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
151 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
152 </g>-->
153 </svg>