| <!DOCTYPE html> |
| <style> |
| .green { |
| background-color: green; |
| } |
| .box { |
| width: 200px; |
| height: 200px; |
| position: absolute; |
| left: 300px; |
| } |
| .reflected { |
| -webkit-box-reflect: right 50px; |
| } |
| </style> |
| <!-- |
| This test checks that we correctly invalidate reflection when they are removed. |
| There should be only one green box below. |
| --> |
| <div class="green reflected box" id="box"></div> |
| <script src="../resources/text-based-repaint.js"></script> |
| <script> |
| function repaintTest() { |
| var box = document.getElementById('box'); |
| box.classList.toggle('reflected'); |
| } |
| window.onload = runRepaintAndPixelTest; |
| </script> |