5 if (window
.testRunner
) {
6 testRunner
.waitUntilDone();
7 testRunner
.setBackingScaleFactor(2, finishTest
);
11 function finishTest() {
12 var test
= document
.getElementById("test");
13 test
.innerHTML
= window
.devicePixelRatio
;
14 setTimeout(function() { testRunner
.notifyDone(); }, 0);
18 <body onload=
"startTest();">
19 <span style=
"background-color:red; -webkit-background-clip:text; -webkit-text-fill-color:transparent">This text should be nice and sharp. devicePixelRatio is:
</span>
20 <span id=
"test"></span>