OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <style> | 3 <style> |
4 .composited { | 4 .composited { |
5 transform: translateZ(0); | 5 transform: translateZ(0); |
6 -webkit-clip-path: circle(45%); | 6 -webkit-clip-path: circle(45%); |
7 } | 7 } |
8 </style> | 8 </style> |
9 | 9 |
10 <!-- There should be a green circle on this page --> | 10 <!-- There should be a green circle on this page --> |
11 <body> | 11 <body> |
12 <img class="composited" onload="load(this)" src="../../fast/images/resources/g
reen-256x256.jpg"> | 12 <img class="composited" onload="load(this)" src="../../images/resources/green-
256x256.jpg"> |
13 </body> | 13 </body> |
14 | 14 |
15 <script> | 15 <script> |
16 function load(element) { | 16 function load(element) { |
17 setTimeout(done, 0); | 17 setTimeout(done, 0); |
18 } | 18 } |
19 | 19 |
20 function done() { | 20 function done() { |
21 if (window.testRunner) | 21 if (window.testRunner) |
22 testRunner.notifyDone(); | 22 testRunner.notifyDone(); |
23 } | 23 } |
24 | 24 |
25 if (window.testRunner) { | 25 if (window.testRunner) { |
26 testRunner.dumpAsTextWithPixelResults(); | 26 testRunner.dumpAsTextWithPixelResults(); |
27 testRunner.waitUntilDone(); | 27 testRunner.waitUntilDone(); |
28 } | 28 } |
29 </script> | 29 </script> |
30 </html> | 30 </html> |
OLD | NEW |