Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: LayoutTests/svg/dom/svg-root-lengths.html

Issue 26390004: Rework SVG sizing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix mishap during rebase in svg.css Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698