OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 body { |
| 4 margin: 0; |
| 5 } |
| 6 #box { |
| 7 width: 100px; |
| 8 height: 100px; |
| 9 background-color: green; |
| 10 -webkit-box-reflect: below; |
| 11 } |
| 12 #box-check { |
| 13 margin-top: 20px; |
| 14 width: 100px; |
| 15 height: 100px; |
| 16 background-color: red; |
| 17 } |
| 18 #positioned { |
| 19 position: absolute; |
| 20 top: 10px; |
| 21 left: 400px; |
| 22 width: 50px; |
| 23 height: 50px; |
| 24 background-color: blue; |
| 25 } |
| 26 #positioned-check { |
| 27 position: absolute; |
| 28 top: 160px; |
| 29 left: 400px; |
| 30 width: 50px; |
| 31 height: 50px; |
| 32 background-color: red; |
| 33 z-index: -1; |
| 34 } |
| 35 </style> |
| 36 <!-- |
| 37 Tests paint invalidation of positioned object when its ancestor changes reflecti
on. |
| 38 Passes if there is no red. |
| 39 --> |
| 40 <div id="box"> |
| 41 <div id="positioned"></div> |
| 42 </div> |
| 43 <div id="box-check"> |
| 44 <div id="positioned-check"></div> |
| 45 </div> |
| 46 <script src="resources/text-based-repaint.js"></script> |
| 47 <script> |
| 48 function repaintTest() { |
| 49 box.style.webkitBoxReflect = 'below 20px'; |
| 50 } |
| 51 runRepaintTest(); |
| 52 </script> |
OLD | NEW |