table-quirks.html (3491B)
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <title>Table quirks</title> 3 <script src='/resources/testharness.js'></script> 4 <script src='/resources/testharnessreport.js'></script> 5 <script src="/resources/check-layout-th.js"></script> 6 <meta name="flags" content="ahem"> 7 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 8 <link rel="stylesheet" type="text/css" href="./support/table-tentative.css" /> 9 <link rel="author" title="Aleks Totic" href="atotic@chromium.org" /> 10 <link rel="help" href="https://quirks.spec.whatwg.org/#the-table-cell-width-calculation-quirk" /> 11 <style> 12 table { 13 table-layout: auto; 14 border-spacing: 8px 8px; 15 } 16 td { 17 padding: 20px; 18 background: #BFB; 19 font-size: 10px; 20 box-sizing: border-box; 21 } 22 td > div { 23 display: inline-block; 24 background: rgba(56,162,56,0.3); 25 } 26 </style> 27 28 <h1>Tables in quirks mode proposals</h1> 29 30 <p><a href="https://quirks.spec.whatwg.org/#the-table-cell-height-box-sizing-quirk">The table cell height box sizing quirk</a></p> 31 <table data-expected-height=116> 32 <tr> 33 <td style="height:100px;box-sizing:content-box" data-expected-height=100>100 height</td> 34 </tr> 35 </table> 36 <table data-expected-height=116> 37 <tr> 38 <td style="height:100px;box-sizing:border-box" data-expected-height=100>100 height</td> 39 </tr> 40 </table> 41 42 <p><a href="https://quirks.spec.whatwg.org/#the-table-cell-nowrap-minimum-width-calculation-quirk">The table cell nowrap minimum width calculation quirk</a></p> 43 <p class="error">Chrome Legacy, Edge, Safari fail, only FF gets it correct.<b>Proposal: deprecate the quirk</b></p> 44 <table> 45 <tr> 46 <td nowrap style="width:50px;font: 20px/1 Ahem" data-expected-width=580>nowrap nowrap nowrap nowrap</td> 47 </tr> 48 </table> 49 50 <p><a href="https://quirks.spec.whatwg.org/#the-text-decoration-doesnt-propagate-into-tables-quirk">The text decoration doesn’t propagate into tables quirk</a></p> 51 <div style="font-style:italic"> 52 <table> 53 <td id="notitalic">decoration</td> 54 </table> 55 </div> 56 57 <p><a href="https://quirks.spec.whatwg.org/#the-collapsing-table-quirk">The collapsing table quirk</a></p> 58 <p class="error">Chrome Legacy/Edge/Safari ignore the quirk, FF does not. <b>Proposal: deprecate the quirk</b></p> 59 <table style="border: 20px solid green" data-expected-height=40 data-expected-width=40></table> 60 61 <p><a href="https://quirks.spec.whatwg.org/#the-table-cell-width-calculation-quirk">The table cell width calculation quirk</a></p> 62 <table style="width:200px"> 63 <td data-expected-width=290><img style="width:50px;height:20px"><img style="width:50px;height:20px"><img style="width:50px;height:20px"><img style="width:50px;height:20px"><img style="width:50px;height:20px"></td> 64 </table> 65 66 <script> 67 let pngSrc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACWAQMAAAChElVaAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABlBMVEUAgAD///8UPy9PAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MBDwkdA1Cz/EMAAAAbSURBVEjH7cGBAAAAAMOg+VPf4ARVAQAAAM8ADzwAAeM8wQsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDEtMTVUMTc6Mjk6MDMtMDg6MDCYDy9IAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTAxLTE1VDE3OjI5OjAzLTA4OjAw6VKX9AAAAABJRU5ErkJggg==" 68 ; 69 for (let img of Array.from(document.querySelectorAll("img"))) { 70 img.src = pngSrc; 71 } 72 test(_ => { 73 assert_equals(window.getComputedStyle(document.querySelector("#notitalic")).fontStyle, "normal"); 74 }, "decoration does not propagate into table"); 75 document.fonts.ready.then(() => checkLayout("table")); 76 </script>