OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | |
3 <style> | 2 <style> |
4 .d1 { | 3 .d1 { |
5 position: absolute; | 4 position: absolute; |
6 left: 10.5px; | 5 left: 10.5px; |
7 width: 100px; | 6 width: 100px; |
8 height: 100px; | 7 height: 100px; |
9 border: 1px solid green; | 8 border: 1px solid green; |
10 } | 9 } |
11 | 10 .d2 { |
12 .d2 { | 11 background-color: green; |
13 background-color: green; | 12 width: 100%; |
14 width: 100%; | 13 height: 100%; |
15 height: 100%; | 14 } |
16 } | |
17 </style> | 15 </style> |
18 </head> | 16 <div class="d1"><div class="d2"></div></div> |
19 | 17 <script> |
20 <body onload="startTest()"> | |
21 <div class="d1"><div class="d2"></div></div> | |
22 | |
23 | |
24 <script> | |
25 function startTest() { | |
26 if (window.testRunner) { | |
27 testRunner.waitUntilDone(); | |
28 testRunner.setBackingScaleFactor(2, finishTest); | |
29 } | |
30 } | |
31 | |
32 function finishTest() { | 18 function finishTest() { |
33 setTimeout(function() { testRunner.notifyDone() }, 0); | 19 setTimeout(function() { testRunner.notifyDone() }, 0); |
34 } | 20 } |
35 </script> | 21 if (window.testRunner) { |
36 </body> | 22 testRunner.waitUntilDone(); |
37 | 23 testRunner.setBackingScaleFactor(2, finishTest); |
| 24 } |
| 25 </script> |
OLD | NEW |