OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="div" style="width: 200px; height: 200px; border: 1px solid red;"> | 8 <div id="div" style="width: 200px; height: 200px; border: 1px solid red;"> |
9 <svg id="svg" xmlns="http://www.w3.org/2000/svg" style="border: 1px solid
blue;"> | 9 <svg id="svg" xmlns="http://www.w3.org/2000/svg" style="width: 100%; heigh
t: 100%; border: 1px solid blue;"> |
10 <rect width="100%" height="100%" fill="green"/> | 10 <rect width="100%" height="100%" fill="green"/> |
11 </svg> | 11 </svg> |
12 </div> | 12 </div> |
13 <div id="console"></div> | 13 <div id="console"></div> |
14 <script> | 14 <script> |
15 if (window.testRunner) { | 15 if (window.testRunner) { |
16 testRunner.waitUntilDone(); | 16 testRunner.waitUntilDone(); |
17 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
18 } | 18 } |
19 | 19 |
(...skipping 28 matching lines...) Expand all Loading... |
48 debug('viewBox has no effect on top level length resolution.'); | 48 debug('viewBox has no effect on top level length resolution.'); |
49 shouldBe('svg.width.baseVal.value', '200'); | 49 shouldBe('svg.width.baseVal.value', '200'); |
50 shouldBe('svg.height.baseVal.value', '100'); | 50 shouldBe('svg.height.baseVal.value', '100'); |
51 | 51 |
52 if (window.testRunner) | 52 if (window.testRunner) |
53 testRunner.notifyDone(); | 53 testRunner.notifyDone(); |
54 }, 0); | 54 }, 0); |
55 </script> | 55 </script> |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |