OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script src="../../resources/run-after-layout-and-paint.js"></script> | 3 <script src="../../resources/run-after-layout-and-paint.js"></script> |
4 | 4 |
5 <style> | 5 <style> |
6 .reflection { | 6 .reflection { |
7 -webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left botto
m, | 7 -webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left botto
m, |
8 from(transparent), color-stop(0, transparent), to(white)); | 8 from(transparent), color-stop(0, transparent), to(white)); |
9 background: url("resources/red-at-12-oclock-with-color-profile.jpg"); | 9 background: url("resources/red-at-12-oclock-with-color-profile.jpg"); |
10 height: 260px; | 10 height: 260px; |
11 } | 11 } |
12 </style> | 12 </style> |
13 | 13 |
14 <!-- The blue sector of the image should be at 12 o'clock and reflected below. -
-> | 14 <!-- The blue sector of the image should be at 12 o'clock and reflected below. -
-> |
15 <div></div> | 15 <div></div> |
16 | 16 |
17 <script> | 17 <script> |
18 window.onload = function() { | 18 window.onload = function() { |
19 document.querySelector('div').classList.add('reflection'); | 19 document.querySelector('div').classList.add('reflection'); |
20 | 20 |
21 if (window.testRunner) | 21 if (window.testRunner) |
22 runAfterLayoutAndPaint(changeColorProfile); | 22 runAfterLayoutAndPaint(changeColorProfile); |
23 }; | 23 }; |
24 | 24 |
25 function changeColorProfile() { | 25 function changeColorProfile() { |
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 |