| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 body { | |
| 4 margin: 0; | |
| 5 } | |
| 6 | |
| 7 table { | |
| 8 border-collapse: collapse; | |
| 9 padding: 4px; | |
| 10 } | |
| 11 | |
| 12 tr { | |
| 13 background: red; | |
| 14 } | |
| 15 | |
| 16 td { | |
| 17 width: 260px; | |
| 18 height: 50px; | |
| 19 /* Disable the cell padding for output simplicity. */ | |
| 20 padding: 0; | |
| 21 } | |
| 22 </style> | |
| 23 <!-- | |
| 24 This test checks that we correctly invalidate a row on a table with padding. | |
| 25 There should be no red below. | |
| 26 --> | |
| 27 <table> | |
| 28 <td></td> | |
| 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 runRepaintAndPixelTest(); | |
| 40 }); | |
| 41 </script> | |
| OLD | NEW |