OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <style> | 3 <style> |
4 .layer { | 4 .layer { |
5 transform: translateZ(0); /* Enable direct compositing. */ | 5 transform: translateZ(0); /* Enable direct compositing. */ |
6 width: 250px; | 6 width: 250px; |
7 } | 7 } |
8 </style> | 8 </style> |
9 | 9 |
10 <body> | 10 <body> |
11 <!-- The blue sector of the images should be at 12 o'clock. --> | 11 <!-- The blue sector of the images should be at 12 o'clock. --> |
12 <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-wi
th-color-profile.png"> | 12 <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-wi
th-color-profile.png"> |
13 <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-wi
th-color-profile.jpg"> | 13 <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-wi
th-color-profile.jpg"> |
14 <img onload="load(this)" title="webp image" src="resources/webp-color-profile-
lossy.webp"> | 14 <img onload="load(this)" title="webp image" src="resources/webp-color-profile-
lossy.webp"> |
15 <br> | 15 <br> |
16 <!-- The blue sector of the images should be at 12 o'clock. --> | 16 <!-- The blue sector of the images should be at 12 o'clock. --> |
17 <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-wi
th-color-profile.png"> | 17 <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-wi
th-color-profile.png"> |
18 <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-wi
th-color-profile.jpg"> | 18 <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-wi
th-color-profile.jpg"> |
19 <img onload="load(this)" title="webp image" src="resources/webp-color-profile-
lossy.webp"> | 19 <img onload="load(this)" title="webp image" src="resources/webp-color-profile-
lossy.webp"> |
20 <br> | 20 <br> |
21 </body> | 21 </body> |
22 | 22 |
23 <script> | 23 <script> |
24 var images = 0; | 24 var images = 0; |
25 | 25 |
26 function load(element) { | 26 function load(element) { |
27 element.classList.add('layer'); | 27 element.classList.add('layer'); |
28 | 28 |
29 if (++images == 6 && window.testRunner) | 29 if (++images == 6 && window.testRunner) |
30 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); | 30 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 100
); |
31 } | 31 } |
32 | 32 |
33 function done() { | 33 function done() { |
34 setTimeout(function() { testRunner.notifyDone() }, 0); | 34 setTimeout(function() { testRunner.notifyDone() }, 0); |
35 } | 35 } |
36 | 36 |
37 if (window.internals) | |
38 internals.settings.setImageColorProfilesEnabled(true); | |
39 | |
40 if (window.testRunner) { | 37 if (window.testRunner) { |
41 testRunner.dumpAsTextWithPixelResults(); | 38 testRunner.dumpAsTextWithPixelResults(); |
42 testRunner.waitUntilDone(); | 39 testRunner.waitUntilDone(); |
43 } | 40 } |
44 </script> | 41 </script> |
45 </html> | 42 </html> |
OLD | NEW |