OLD | NEW |
---|---|
1 <svg id="svg-root" width="100%" height="100%" | 1 <svg id="svg-root" width="100%" height="100%" |
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" | 2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
3 xmlns:xlink="http://www.w3.org/1999/xlink" onload="runtest()"> | 3 xmlns:xlink="http://www.w3.org/1999/xlink" onload="runtest()"> |
4 <!--======================================================================--> | 4 <!--======================================================================--> |
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> | 5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> |
6 <!--= Institute of Technology, European Research Consortium for =--> | 6 <!--= Institute of Technology, European Research Consortium for =--> |
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> | 7 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
8 <!--= All Rights Reserved. =--> | 8 <!--= All Rights Reserved. =--> |
9 <!--= See http://www.w3.org/Consortium/Legal/. =--> | 9 <!--= See http://www.w3.org/Consortium/Legal/. =--> |
10 <!--======================================================================--> | 10 <!--======================================================================--> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 var r2 = document.getElementById ("r2"); | 54 var r2 = document.getElementById ("r2"); |
55 var r3 = document.getElementById ("r3"); | 55 var r3 = document.getElementById ("r3"); |
56 var i0 = r1.requiredFeatures.get Item(0); | 56 var i0 = r1.requiredFeatures.get Item(0); |
57 var i1 = r1.requiredFeatures.get Item(1); | 57 var i1 = r1.requiredFeatures.get Item(1); |
58 | 58 |
59 if(i0 != "http://www.w3.org/TR/S VG11/feature#Shape") | 59 if(i0 != "http://www.w3.org/TR/S VG11/feature#Shape") |
60 { | 60 { |
61 r1.removeAttribute("requ iredFeatures"); | 61 r1.removeAttribute("requ iredFeatures"); |
62 return; | 62 return; |
63 } | 63 } |
64 » » » » » » if(i1 != "this.is.a.bogus.featur e.string") | 64 » » » » » » if(i1 != "http://www.w3.org/TR/S VG11/feature#BogusFeature") |
abarth-chromium
2013/07/26 17:24:25
There are SVG conformance tests. Should we be cha
do-not-use
2013/07/26 17:49:29
Sorry, I updated many SVG tests and I missed that
| |
65 { | 65 { |
66 r1.removeAttribute("requ iredFeatures"); | 66 r1.removeAttribute("requ iredFeatures"); |
67 return; | 67 return; |
68 } | 68 } |
69 if(r1.requiredFeatures.numberOfI tems != 2) | 69 if(r1.requiredFeatures.numberOfI tems != 2) |
70 { | 70 { |
71 r1.removeAttribute("requ iredFeatures"); | 71 r1.removeAttribute("requ iredFeatures"); |
72 return; | 72 return; |
73 } | 73 } |
74 r2.requiredFeatures.appendItem(i 1); | 74 r2.requiredFeatures.appendItem(i 1); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 <text x="50%" y="70" text-anchor="middle">SVGStringList DOM</tex t> | 106 <text x="50%" y="70" text-anchor="middle">SVGStringList DOM</tex t> |
107 | 107 |
108 <!-- background images --> | 108 <!-- background images --> |
109 <g> | 109 <g> |
110 <rect width="100" height="100" fill="lime" transform="tr anslate(80 100)"/> | 110 <rect width="100" height="100" fill="lime" transform="tr anslate(80 100)"/> |
111 <rect width="100" height="100" fill="lime" transform="tr anslate(190 100)"/> | 111 <rect width="100" height="100" fill="lime" transform="tr anslate(190 100)"/> |
112 <rect width="100" height="100" fill="red" transform="tra nslate(300 100)"/> | 112 <rect width="100" height="100" fill="red" transform="tra nslate(300 100)"/> |
113 </g> | 113 </g> |
114 | 114 |
115 <!-- tests --> | 115 <!-- tests --> |
116 » » <rect id="r1" requiredFeatures="http://www.w3.org/TR/SVG11/featu re#Shape this.is.a.bogus.feature.string" width="100" height="100" fill="red" tra nsform="translate(100 100)"/> | 116 » » <rect id="r1" requiredFeatures="http://www.w3.org/TR/SVG11/featu re#Shape http://www.w3.org/TR/SVG11/feature#BogusFeature" width="100" height="10 0" fill="red" transform="translate(100 100)"/> |
117 <rect id="r2" width="100" height="100" fill="red" transform="tra nslate(190 100)"/> | 117 <rect id="r2" width="100" height="100" fill="red" transform="tra nslate(190 100)"/> |
118 <rect id="r3" width="100" height="100" fill="lime" requiredFeatu res="http://www.w3.org/TR/SVG11/feature#Shape" transform="translate(300 100)"/> | 118 <rect id="r3" width="100" height="100" fill="lime" requiredFeatu res="http://www.w3.org/TR/SVG11/feature#Shape" transform="translate(300 100)"/> |
119 | 119 |
120 <rect id="fail" width="100%" height="100%" fill="none"/> | 120 <rect id="fail" width="100%" height="100%" fill="none"/> |
121 </g> | 121 </g> |
122 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> | 122 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
123 <text id="revision" x="10" y="340" stroke="none" | 123 <text id="revision" x="10" y="340" stroke="none" |
124 fill="black">$Revision: 1.5 $</text> | 124 fill="black">$Revision: 1.5 $</text> |
125 </g> | 125 </g> |
126 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke= "#000"/> | 126 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke= "#000"/> |
127 <!-- comment out this watermark once the test is approved --><!-- | 127 <!-- comment out this watermark once the test is approved --><!-- |
128 <g id="draft-watermark"> | 128 <g id="draft-watermark"> |
129 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-w idth="1"/> | 129 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-w idth="1"/> |
130 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size ="20" x="240" | 130 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size ="20" x="240" |
131 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white" >DRAFT</text> | 131 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white" >DRAFT</text> |
132 </g>--> | 132 </g>--> |
133 </svg> | 133 </svg> |
OLD | NEW |