row-background-paint-remove-last-cell.html (944B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <script src="/common/reftest-wait.js"></script> 4 <script src="/common/rendering-utils.js"></script> 5 <link rel="author" title="Chenguang Shao" href="chenguangshao1@gmail.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#drawing-cell-backgrounds"> 7 <link rel="match" href="row-background-paint-remove-last-cell-ref.html"> 8 <style> 9 tr { background-color: rgb(255, 0, 0); } 10 td:not(#remove) { background-color: green; } 11 </style> 12 <title>CSS Table Module Test: table-row repaint after removing last cell</title> 13 <script> 14 waitForAtLeastOneFrame().then(() => { 15 const remove = document.getElementById('remove'); 16 remove.remove(); 17 takeScreenshot(); 18 }); 19 </script> 20 <p>Test passes if you see three green cells and no red below.</p> 21 <table> 22 <tr> 23 <td>A1</td> 24 <td>A2</td> 25 </tr> 26 <tr> 27 <td>B1</td> 28 <td id="remove"> B2 </td> 29 </tr> 30 </table> 31 </html>