OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> |
2 <!-- Test for crbug.com/250001 --> | 2 <!-- Test for crbug.com/250001 --> |
3 <g transform="scale(4)"> | 3 <g transform="scale(4)"> |
4 <rect id="clear_rect" width="100%" height="100%"/> | 4 <rect id="clear_rect" width="100%" height="100%"/> |
5 <rect id="rect" x="25" y="25" width="25" height="25" fill="green" stroke-wid
th="1" stroke="black"/> | 5 <rect id="rect" x="25" y="25" width="25" height="25" fill="green" stroke-wid
th="1" stroke="black"/> |
6 </g> | 6 </g> |
7 | 7 |
8 <script> | 8 <script> |
9 if (window.testRunner) { | 9 if (window.testRunner) { |
10 testRunner.display(); | |
11 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
| 11 } |
| 12 window.requestAnimationFrame(function() { |
12 setTimeout(runTest, 0); | 13 setTimeout(runTest, 0); |
13 } else { | 14 }); |
14 setTimeout(runTest, 200); | |
15 } | |
16 | 15 |
17 function runTest() { | 16 function runTest() { |
18 » document.getElementById('clear_rect').setAttribute('fill', 'white'); | 17 document.getElementById('clear_rect').setAttribute('fill', 'white'); |
19 » document.getElementById('rect').setAttribute('vector-effect', 'non-scali
ng-stroke'); | 18 document.getElementById('rect').setAttribute('vector-effect', 'non-scali
ng-stroke'); |
20 » if (window.testRunner) | 19 if (window.testRunner) |
21 » testRunner.notifyDone(); | 20 testRunner.notifyDone(); |
22 } | 21 } |
23 </script> | 22 </script> |
24 </svg> | 23 </svg> |
OLD | NEW |