OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <style> |
| 4 .layer { -webkit-transform: translateZ(0) } |
| 5 </style> |
| 6 |
| 7 <body> |
| 8 <!-- The blue sector of the images should be at 12 o'clock. --> |
| 9 <img width="250px" onload="load(this)" src="resources/webp-color-profile-lossy
.webp"> |
| 10 <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-co
lor-profile.png"> |
| 11 <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-co
lor-profile.jpg"> |
| 12 <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-co
lor-profile.png"> |
| 13 <img width="250px" onload="load(this)" src="resources/red-at-12-oclock-with-co
lor-profile.jpg"> |
| 14 <img width="250px" onload="load(this)" src="resources/webp-color-profile-lossy
.webp"> |
| 15 </body> |
| 16 |
| 17 <script> |
| 18 var images = 0; |
| 19 |
| 20 function load(element) { |
| 21 element.classList.add('layer'); |
| 22 |
| 23 if (++images == 6 && window.testRunner) |
| 24 setTimeout(function() { testRunner.setColorProfile('test', done) }, 100); |
| 25 } |
| 26 |
| 27 function done() { |
| 28 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 29 } |
| 30 |
| 31 if (window.testRunner) { |
| 32 testRunner.dumpAsTextWithPixelResults(); |
| 33 testRunner.waitUntilDone(); |
| 34 } |
| 35 </script> |
| 36 </html> |
OLD | NEW |