| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="UTF-8"?> | |
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd"> | |
| 3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" version="1.1" baseProfile="full" id="svg-root" width="100%" height="100%" vie
wBox="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 <!-- styling-css-04-f.svg
--> | |
| 13 <!-- --> | |
| 14 <!-- Tests CSS2 selectors
--> | |
| 15 <!-- --> | |
| 16 <!-- Author : Corel SVG Viewer QA team 01-05-2003 --> | |
| 17 <!-- Revised by: Benoit Bezaire
--> | |
| 18 <!-- --> | |
| 19 <!--======================================================================--> | |
| 20 <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/descripti
on/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" owner="BB" rev
iewer="CL" desc="Tests CSS2 selectors" status="accepted" version="$Revision: 1.1
3 $" testname="$RCSfile: styling-css-04-f.svg,v $"> | |
| 21 <OperatorScript> | |
| 22 <Paragraph>This purpose of the file is to test some of the CSS2 selector s
yntax. | |
| 23 A UA supporting CSS selectors should render an image identical t
o the referenced image. | |
| 24 </Paragraph> | |
| 25 <Paragraph>For a full analysis of this test, please see | |
| 26 <a href="http://www.w3.org/Graphics/SVG/Test/styling-css-04-f/blow-by-bl
ow.html" target="css">this explanation</a>.</Paragraph> | |
| 27 </OperatorScript> | |
| 28 </SVGTestCase> | |
| 29 <title id="test-title">styling-css-04-f.svg</title> | |
| 30 <desc id="test-desc">Tests CSS2 selectors</desc> | |
| 31 <!--======================================================================--> | |
| 32 <!--Content of Test Case follows... =====================--> | |
| 33 <!--======================================================================--> | |
| 34 <g id="testContent" fill="white"> | |
| 35 <text x="240" y="35" font-size="20" font-family="Arial, Helvetica, sans-seri
f" | |
| 36 text-anchor="middle">CSS selector test</text> | |
| 37 <defs> | |
| 38 <style type="text/css"> | |
| 39 * {stroke:red; stroke-width:1;} /* 0 */ | |
| 40 text {stroke:none; fill:black;} /* 1 */ | |
| 41 rect {stroke:black; stroke-dasharray:none;} /* 1 */ | |
| 42 #test-frame {fill:none} /* 100 */ | |
| 43 g#alpha {fill:blue} /* 101 */ | |
| 44 a#alpha {fill:red} /* 101 */ | |
| 45 #alpha * rect {fill:green} /* 101 */ | |
| 46 #alpha-2 > rect {fill:orange} /* 101 */ | |
| 47 #beta rect {fill:gold} /* 101 */ | |
| 48 g#gamma * g * * rect {fill:red} /* 103 */ | |
| 49 g#gamma * * rect {fill:purple} /* 102 */ | |
| 50 [stroke-width="1.0001"] {fill:blue} /* 10 */ | |
| 51 g#delta rect[stroke-width="1.0002"] {fill:green} /* 112 */ | |
| 52 g#delta > rect[stroke-width="1.0003"] {fill:orange} /* 102 */ | |
| 53 #delta + g > * {fill:gold} /* 101 */ | |
| 54 g#delta + g > rect + rect {fill:purple} /* 104 */ | |
| 55 #delta + g#epsilon * rect:first-child {fill:red} /* 202 */ | |
| 56 #zeta [cursor] {fill:blue} /* 110 */ | |
| 57 g#zeta [cursor="help"] {fill:green} /* 111 */ | |
| 58 g#zeta [rx~="3E"] {fill:orange} /* 111 */ | |
| 59 g#epsilon + g [stroke-dasharray|="3.1415926"] {fill:gold} /* 112 */ | |
| 60 g#epsilon + g > rect.hello {fill:purple} /* 113 */ | |
| 61 g#eta rect:first-child {fill:red} (/* 102 */ | |
| 62 </style> | |
| 63 </defs> | |
| 64 <g id="alpha"> | |
| 65 <rect x="30" y="70" width="67.5" height="67.5" id="A1"/> | |
| 66 <g id="alpha-1"> | |
| 67 <rect x="100" y="70" width="67.5" height="67.5" id="B1" /> | |
| 68 </g> | |
| 69 <g id="alpha-2"> | |
| 70 <rect x="170" y="70" width="67.5" height="67.5" id="C1"/> | |
| 71 </g> | |
| 72 </g> | |
| 73 <g id="beta"> | |
| 74 <g> | |
| 75 <g> | |
| 76 <g> | |
| 77 <g> | |
| 78 <g> | |
| 79 <rect x="240" y="70" width="67.5" height="67.5" id="D1"/> | |
| 80 </g> | |
| 81 </g> | |
| 82 </g> | |
| 83 </g> | |
| 84 </g> | |
| 85 </g> | |
| 86 <g id="gamma"> | |
| 87 <g> | |
| 88 <g> | |
| 89 <rect x="310" y="70" width="67.5" height="67.5" id="E1"/> | |
| 90 <g> | |
| 91 <g> | |
| 92 <rect x="380" y="70" width="67.5" height="67.5" id="F1"/> | |
| 93 </g> | |
| 94 </g> | |
| 95 </g> | |
| 96 </g> | |
| 97 </g> | |
| 98 <g id="delta"> | |
| 99 <rect x="30" y="140" width="67.5" height="67.5" stroke-width="1.0001" id="
A2"/> | |
| 100 <rect x="100" y="140" width="67.5" height="67.5" stroke-width="1.0002" id=
"B2"/> | |
| 101 <rect x="170" y="140" width="67.5" height="67.5" stroke-width="1.0003" id=
"C2"/> | |
| 102 </g> | |
| 103 <g id="epsilon"> | |
| 104 <rect x="240" y="140" width="67.5" height="67.5" id="D2"/> | |
| 105 <rect x="310" y="140" width="67.5" height="67.5" id="E2"/> | |
| 106 <g> | |
| 107 <rect x="380" y="140" width="67.5" height="67.5" id="F2"/> | |
| 108 </g> | |
| 109 </g> | |
| 110 <g id="zeta"> | |
| 111 <rect x="30" y="210" width="67.5" height="67.5" cursor="default" id="A3"/> | |
| 112 <rect x="100" y="210" width="67.5" height="67.5" cursor="help" id="B3"/> | |
| 113 <rect x="170" y="210" width="67.5" height="67.5" stroke-dasharray="5, 3.14
" id="C3" style="fill:orange"/> | |
| 114 <rect x="240" y="210" width="67.5" height="67.5" rx="3E-6" stroke-dasharra
y="3.1415926,8" id="D3" style="fill:gold"/> | |
| 115 <rect x="310" y="210" width="67.5" height="67.5" class="hello" id="E3"/> | |
| 116 </g> | |
| 117 <g id="eta"> | |
| 118 <rect x="380" y="210" width="67.5" height="67.5" id="F3"/> | |
| 119 </g> | |
| 120 <g id="labels" font-size="16" font-family="Arial, Helvetica, sans-serif"> | |
| 121 <text x="64" y="60" text-anchor="middle">A</text> | |
| 122 <text x="133" y="60" text-anchor="middle">B</text> | |
| 123 <text x="200" y="60" text-anchor="middle">C</text> | |
| 124 <text x="270" y="60" text-anchor="middle">D</text> | |
| 125 <text x="340" y="60" text-anchor="middle">E</text> | |
| 126 <text x="410" y="60" text-anchor="middle">F</text> | |
| 127 <text x="20" y="113" text-anchor="middle">1</text> | |
| 128 <text x="20" y="183" text-anchor="middle">2</text> | |
| 129 <text x="20" y="253" text-anchor="middle">3</text> | |
| 130 </g> | |
| 131 </g> | |
| 132 <text id="revision" x="10" y="340" font-size="30">$Revision: 1.13 $</text> | |
| 133 <rect id="test-frame" x="1" y="1" width="478" height="358"/> | |
| 134 </svg> | |
| OLD | NEW |