| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <style> |
| 4 h1 { |
| 5 overflow: hidden; |
| 6 width: 792px; |
| 7 height: 160px; |
| 8 } |
| 9 |
| 10 h1:before { |
| 11 content: url("resources/red-at-12-oclock-with-color-profile.jpg"); |
| 12 display: inline-block; |
| 13 margin: 0px -20px; |
| 14 } |
| 15 </style> |
| 16 |
| 17 </body> |
| 18 <!-- The blue sector of the content image should be at 12 o'clock. --> |
| 19 <h1> |
| 20 pseudo-content image replacement |
| 21 </h1> |
| 22 </body> |
| 23 |
| 24 <script> |
| 25 window.onload = function() { |
| 26 if (window.testRunner) |
| 27 setTimeout(function() { testRunner.setColorProfile('test', done) }, 100); |
| 28 }; |
| 29 |
| 30 function done() { |
| 31 if (window.testRunner) |
| 32 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 33 } |
| 34 |
| 35 if (window.internals) |
| 36 internals.settings.setImageColorProfilesEnabled(true); |
| 37 |
| 38 if (window.testRunner) { |
| 39 testRunner.dumpAsTextWithPixelResults(); |
| 40 testRunner.waitUntilDone(); |
| 41 } |
| 42 </script> |
| 43 </html> |
| OLD | NEW |