OLD | NEW |
1 <html> | 1 <!DOCTYPE html> |
2 <head> | 2 <span style="background-color:red; -webkit-background-clip:text; -webkit-text-fi
ll-color:transparent">This text should be nice and sharp. devicePixelRatio is: <
/span> |
| 3 <span id="test"></span> |
3 <script> | 4 <script> |
4 function startTest() { | |
5 if (window.testRunner) { | |
6 testRunner.waitUntilDone(); | |
7 testRunner.setBackingScaleFactor(2, finishTest); | |
8 } | |
9 } | |
10 | |
11 function finishTest() { | 5 function finishTest() { |
12 var test = document.getElementById("test"); | 6 var test = document.getElementById("test"); |
13 test.innerHTML = window.devicePixelRatio; | 7 test.innerHTML = window.devicePixelRatio; |
14 setTimeout(function() { testRunner.notifyDone(); }, 0); | 8 setTimeout(function() { testRunner.notifyDone(); }, 0); |
15 } | 9 } |
| 10 if (window.testRunner) { |
| 11 testRunner.waitUntilDone(); |
| 12 testRunner.setBackingScaleFactor(2, finishTest); |
| 13 } |
16 </script> | 14 </script> |
17 </head> | |
18 <body onload="startTest();"> | |
19 <span style="background-color:red; -webkit-background-clip:text; -webkit-tex
t-fill-color:transparent">This text should be nice and sharp. devicePixelRatio i
s: </span> | |
20 <span id="test"></span> | |
21 </body> | |
22 </html> | |
OLD | NEW |