| 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 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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> | 30 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 31 <script src="resources/text-based-repaint.js"></script> | 31 <script src="resources/repaint.js"></script> |
| 32 <script> | 32 <script> |
| 33 repaintTest = function() { | 33 repaintTest = function() { |
| 34 var row = document.getElementsByTagName("tr")[0]; | 34 var row = document.getElementsByTagName("tr")[0]; |
| 35 row.style.background = "green"; | 35 row.style.background = "green"; |
| 36 } | 36 } |
| 37 | 37 |
| 38 runAfterLayoutAndPaint(function() { | 38 runAfterLayoutAndPaint(function() { |
| 39 runRepaintTest(); | 39 runRepaintTest(); |
| 40 }); | 40 }); |
| 41 </script> | 41 </script> |
| OLD | NEW |