percent-width-ignored-001.tentative.html (1123B)
1 <!DOCTYPE html> 2 <script src='/resources/testharness.js'></script> 3 <script src='/resources/testharnessreport.js'></script> 4 <script src='/resources/check-layout-th.js'></script> 5 <link rel="author" title="David Grogan" href="dgrogan@chromium.org"> 6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3336"> 7 <meta name="assert" content="A cell's percent width is ignored when its table is nested in another cell" /> 8 No red should show. Yellow and blue rectangles are in proportion to their 9 contents' intrinsic widths, not affected by yellow's percent-width bloating the 10 inner table. 11 <table id="outerTable" style="width: 300px" cellspacing="0" cellpadding="0"> 12 <td style="background:red;"> 13 <table cellspacing="0" cellpadding="0"> 14 <td style="width:1%; background:yellow;" data-expected-width="100"> 15 <div style="width:20px; height:150px;"></div> 16 </td> 17 </table> 18 </td> 19 <td style="background:lightblue;" data-expected-width="200"> 20 <div style="width:40px; height:150px;"></div> 21 </td> 22 </table> 23 <script> 24 checkLayout('#outerTable'); 25 </script>