1 <svg xmlns=
"http://www.w3.org/2000/svg" onload=
"startTest()">
4 if (!window.testRunner)
7 testRunner.waitUntilDone();
8 testRunner.setBackingScaleFactor(
2, finishTest);
11 function finishTest() {
12 setTimeout(function () { testRunner.notifyDone(); },
0);
17 -webkit-font-smoothing: antialiased;
23 <rect width='
100%' height='
100%' fill='white'
/>
24 <text width='
100%' height='
100%' x='
0' y='
12'
>This text should be sharp.
</text>
27 <rect width='
200' height='
100' fill='black'
/>
28 <rect width='
200' height='
100' fill='white'
mask=
"url(#textMask)"/>
31 <linearGradient id=
"blackGradient" x1=
"0%" y1=
"0%" x2=
"100%" y2=
"0%">
32 <stop offset=
"0%" style=
"stop-color:rgb(0,0,0);"/>
33 <stop offset=
"100%" style=
"stop-color:rgb(0,0,0);"/>
36 <text x='
0' y='
36'
fill=
"url(#blackGradient)">This text and the circles should also be sharp.
</text>
39 <clipPath id=
"circleClipPath" clipPathUnits=
"objectBoundingBox">
40 <circle cx=
"0.25" cy=
"0.25" r=
"0.20"/>
41 <circle cx=
"0.25" cy=
"0.75" r=
"0.20"/>
44 <rect x=
"0" y=
"60" width=
"100" height=
"100" clip-path=
"url(#circleClipPath)"/>
47 <pattern id=
"Pattern" width=
"1" height=
"1">
48 <circle cx=
"25" cy=
"25" r=
"20" fill=
"url(#blackGradient)"/>
51 <rect fill=
"url(#Pattern)" x=
"0" y=
"162" width=
"200" height=
"200"/>