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