OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 body { | 3 body { |
4 margin: 0; | 4 margin: 0; |
5 } | 5 } |
6 | 6 |
7 table { | 7 table { |
8 border-collapse: collapse; | 8 border-collapse: collapse; |
9 padding: 4px; | 9 padding: 4px; |
10 } | 10 } |
11 | 11 |
12 tr { | 12 tr { |
13 background: red; | 13 background: green; |
14 } | 14 } |
15 | 15 |
16 td { | 16 td { |
17 width: 260px; | 17 width: 260px; |
18 height: 50px; | 18 height: 50px; |
19 /* Disable the cell padding for output simplicity. */ | 19 /* Disable the cell padding for output simplicity. */ |
20 padding: 0; | 20 padding: 0; |
21 } | 21 } |
22 </style> | 22 </style> |
23 <!-- | 23 <!-- |
24 This test checks that we correctly invalidate a row on a table with padding. | 24 This test checks that we correctly invalidate a row on a table with padding. |
25 There should be no red below. | 25 There should be no red below. |
26 --> | 26 --> |
27 <table> | 27 <table> |
28 <td></td> | 28 <td></td> |
29 </table> | 29 </table> |
30 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
31 <script src="resources/text-based-repaint.js"></script> | |
32 <script> | |
33 repaintTest = function() { | |
34 var row = document.getElementsByTagName("tr")[0]; | |
35 row.style.background = "green"; | |
36 } | |
37 | |
38 runAfterLayoutAndPaint(function() { | |
39 runRepaintTest(); | |
40 }); | |
41 </script> | |
OLD | NEW |