OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 function repaintTest() { | 4 function repaintTest() { |
5 document.getElementById('row').style.height = '200px'; | 5 document.getElementById('row').style.height = '200px'; |
6 } | 6 } |
7 onload = runRepaintTest; | 7 onload = runRepaintAndPixelTest; |
8 </script> | 8 </script> |
9 <style> | 9 <style> |
10 body { | 10 body { |
11 margin: 0; | 11 margin: 0; |
12 } | 12 } |
13 tr { | 13 tr { |
14 height: 100px; | 14 height: 100px; |
15 } | 15 } |
16 td { | 16 td { |
17 width: 100px; | 17 width: 100px; |
18 } | 18 } |
19 </style> | 19 </style> |
20 <div style="height: 100px"> | 20 <div style="height: 100px"> |
21 Tests repaint of table cells when the row changes size. | 21 Tests repaint of table cells when the row changes size. |
22 The result repaint rects should cover the changed table cells. | 22 The result repaint rects should cover the changed table cells. |
23 </div> | 23 </div> |
24 <table> | 24 <table> |
25 <tr id="row"> | 25 <tr id="row"> |
26 <td>MIDDLE</td> | 26 <td>MIDDLE</td> |
27 </tr> | 27 </tr> |
28 </table> | 28 </table> |
OLD | NEW |