OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <style> |
| 4 .reflection { |
| 5 -webkit-box-reflect: below 5px -webkit-gradient(linear, left top, left botto
m, |
| 6 from(transparent), color-stop(0, transparent), to(white)); |
| 7 background: url("resources/red-at-12-oclock-with-color-profile.jpg"); |
| 8 height: 260px; |
| 9 } |
| 10 </style> |
| 11 |
| 12 <!-- The blue sector of the image should be at 12 o'clock, and reflected below.
--> |
| 13 <div></div> |
| 14 |
| 15 <script> |
| 16 window.onload = function() { |
| 17 div.classList.add('reflection'); |
| 18 |
| 19 if (Math.round(div.offsetHeight) == 260 && window.testRunner) |
| 20 testRunner.setColorProfile('test', done); |
| 21 }; |
| 22 |
| 23 function done() { |
| 24 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 25 } |
| 26 |
| 27 if (window.testRunner) { |
| 28 testRunner.dumpAsTextWithPixelResults(); |
| 29 testRunner.waitUntilDone(); |
| 30 } |
| 31 </script> |
| 32 </html> |
OLD | NEW |