| OLD | NEW |
| 1 <!-- Based on fast/repaint/multicol-with-abspos.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
| 3 <script> | 4 <script> |
| 4 if (window.internals) | 5 onload = runPaintInvalidationTest; |
| 5 onload = runRepaintTest; | 6 window.expectedPaintInvalidationObjects = [ |
| 6 else | 7 "LayoutBlockFlow (positioned) DIV id='target'", |
| 7 onclick = repaintTest; | 8 "LayoutText #text", |
| 8 function repaintTest() { | 9 "InlineTextBox 'PASS'", |
| 10 ]; |
| 11 function paintInvalidationTest() { |
| 9 var target = document.getElementById('target'); | 12 var target = document.getElementById('target'); |
| 10 target.style.visibility = 'visible'; | 13 target.style.visibility = 'visible'; |
| 11 } | 14 } |
| 12 </script> | 15 </script> |
| 13 <p>A green rectangle should be seen below (if tested manually, you need to click
first).</p> | 16 <p>A green PASS should be seen at the bottom-left corner.</p> |
| 14 <div style="-webkit-columns:4; -webkit-column-gap:10px; column-fill:auto; width:
630px; height:40px; font:20px/1 ahem; color:green;"> | 17 <div style="-webkit-columns:4; -webkit-column-gap:10px; column-fill:auto; width:
630px; height:40px; color:green;"> |
| 15 <br> | 18 <br> |
| 16 <br> | 19 <br> |
| 17 <br> | 20 <br> |
| 18 <br> | 21 <br> |
| 19 <br> | 22 <br> |
| 20 <br> | 23 <br> |
| 21 <!-- This absolutely positioned box is not part of the flow thread, since th
e nearest | 24 <!-- This absolutely positioned box is not part of the flow thread, since th
e nearest |
| 22 non-statically positioned box is further up than that. --> | 25 non-statically positioned box is further up than that. --> |
| 23 <div id="target" style="position:absolute; left:0; bottom:0; visibility:hidd
en;">PASS</div> | 26 <div id="target" style="position:absolute; left:0; bottom:0; visibility:hidd
en;">PASS</div> |
| 24 </div> | 27 </div> |
| OLD | NEW |