OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <style> | 3 <style> |
4 .t0 { -webkit-transform: translate(-60px, 0px); } | 4 .t0 { -webkit-transform: translate(-60px, 0px); } |
5 .t1 { -webkit-transform: translate(405px, 0px); } | 5 .t1 { -webkit-transform: translate(405px, 0px); } |
6 .t2 { top: -462px; left: 240px; -webkit-transform: rotate(-90deg); } | 6 .t2 { top: -462px; left: 240px; -webkit-transform: rotate(-90deg); } |
7 | 7 |
8 img { | 8 img { |
9 position: absolute; | 9 position: absolute; |
10 clip: rect(30px, 300px, 240px, 90px); | 10 clip: rect(30px, 300px, 240px, 90px); |
11 } | 11 } |
12 </style> | 12 </style> |
13 | 13 |
14 <body style="overflow: hidden"> | 14 <body style="overflow: hidden"> |
15 <!-- There should be no red on this page. --> | 15 <!-- There should be no red on this page. --> |
16 <img class="t0" title="jpg image" onload="load()" src="resources/red-at-12-ocl
ock-with-color-profile.jpg"> | 16 <img class="t0" title="jpg image" onload="load()" src="resources/red-at-12-ocl
ock-with-color-profile.jpg"> |
17 <img class="t1" title="png image" onload="load()" src="resources/red-at-12-ocl
ock-with-color-profile.png"> | 17 <img class="t1" title="png image" onload="load()" src="resources/red-at-12-ocl
ock-with-color-profile.png"> |
18 <img class="t2" title="jpg image" onload="load()" src="resources/red-at-12-ocl
ock-with-color-profile.jpg"> | 18 <img class="t2" title="jpg image" onload="load()" src="resources/red-at-12-ocl
ock-with-color-profile.jpg"> |
19 </body> | 19 </body> |
20 | 20 |
21 <script> | 21 <script> |
22 var images = 0; | 22 var images = 0; |
23 | 23 |
24 function load() { | 24 function load() { |
25 if (++images == 3 && window.testRunner) | 25 if (++images == 3 && window.testRunner) |
26 testRunner.setColorProfile('whacked', done); | 26 testRunner.setColorProfile('colorSpin', done); |
27 } | 27 } |
28 | 28 |
29 function done() { | 29 function done() { |
30 setTimeout(function() { testRunner.notifyDone() }, 0); | 30 setTimeout(function() { testRunner.notifyDone() }, 0); |
31 } | 31 } |
32 | 32 |
33 if (window.internals) | |
34 internals.settings.setImageColorProfilesEnabled(true); | |
35 | |
36 if (window.testRunner) { | 33 if (window.testRunner) { |
37 testRunner.dumpAsTextWithPixelResults(); | 34 testRunner.dumpAsTextWithPixelResults(); |
38 testRunner.waitUntilDone(); | 35 testRunner.waitUntilDone(); |
39 } | 36 } |
40 </script> | 37 </script> |
41 </html> | 38 </html> |
OLD | NEW |