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