col-change-span-bg-invalidation-001.html (1176B)
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="Andreu Botella" href="abotella@igalia.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#drawing-cell-backgrounds"> 7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 8 <meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-4400"> 9 <meta name=assert content="Changing the span of a table column element will invalidate column backgrounds"> 10 <style> 11 table { 12 width: 100px; 13 height: 100px; 14 border-spacing: 0; 15 } 16 .green { 17 background: green; 18 } 19 .red { 20 background: red; 21 } 22 </style> 23 <title>CSS table column span invalidation</title> 24 <script> 25 waitForAtLeastOneFrame().then(() => { 26 const changeSpanCol = document.getElementById("changeSpan"); 27 changeSpanCol.setAttribute("span", "2"); 28 takeScreenshot(); 29 }); 30 </script> 31 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 32 <table> 33 <col id="changeSpan" class="green"> 34 <col class="green"> 35 <col class="red"> 36 <tr> 37 <td></td> 38 <td></td> 39 <td></td> 40 </tr> 41 </table> 42 </html>