Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
| 3 <script> | |
| 4 if (window.testRunner) | |
| 5 testRunner.waitUntilDone(); | |
| 6 | |
| 7 function setScale() { | |
| 8 var obj = document.querySelector("object"); | |
| 9 var svgdoc = obj.contentDocument; | |
| 10 var svgroot = svgdoc.documentElement; | |
| 11 svgroot.currentScale = 0.5; | |
| 12 runAfterLayoutAndPaint(function() { | |
| 13 if (window.testRunner) | |
|
fs
2016/03/31 10:53:04
You can pass 'true' as the second argument to runA
Shanmuga Pandi
2016/03/31 11:53:35
Done.
| |
| 14 testRunner.notifyDone(); | |
| 15 }); | |
| 16 } | |
| 17 </script> | |
| 18 | |
| 19 <body> | |
|
fs
2016/03/31 10:53:04
You don't need this <body>.
Shanmuga Pandi
2016/03/31 11:53:35
Done.
| |
| 20 <object onload="setScale()" data="resources/green-rect.svg" type="image/svg+ xml"> | |
| 21 </object> | |
| 22 <svg width='400' height='400' viewBox='0 0 200 200'> | |
|
fs
2016/03/31 10:53:04
This is a pretty roundabout way to get a 100x100 r
Shanmuga Pandi
2016/03/31 11:53:35
Acknowledged.
| |
| 23 <rect width='50' height='50' fill='green'/> | |
| 24 </svg> | |
| 25 </body> | |
| OLD | NEW |