| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <!-- | |
| 3 Test that the ::first-line background is repainted at the new position when
its block is moved. | |
| 4 There should be no red below. | |
| 5 --> | |
| 6 <script src="../../resources/ahem.js"></script> | |
| 7 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
| 8 <script src="resources/text-based-repaint.js"></script> | |
| 9 <style> | |
| 10 body { font:20px Ahem; } | |
| 11 .test { color:green; } | |
| 12 .test::first-line { background:red; } | |
| 13 </style> | |
| 14 <div id="spacer" style="display:none; height:3em;"></div> | |
| 15 <div class="test">JOCULAR</div> | |
| 16 <script> | |
| 17 repaintTest = function() { | |
| 18 document.getElementById("spacer").style.display = "block"; | |
| 19 } | |
| 20 runAfterLayoutAndPaint(function() { | |
| 21 runRepaintAndPixelTest(); | |
| 22 }); | |
| 23 </script> | |
| OLD | NEW |