percent-width-ignored-003.tentative.html (1151B)
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, even if there's an intermediate block." /> 8 Engines render this same as without the intermediate background:blue block -- yellow 1% width is ignored. 9 <table id="outerTable" style="width: 300px" cellspacing="0" cellpadding="0"> 10 <td style="background:red;"> 11 <div style="background:blue"> 12 <table cellspacing="0" cellpadding="0"> 13 <td style="width:1%; background:yellow;" data-expected-width="100"> 14 <div style="width:20px; height:150px;"></div> 15 </td> 16 </table> 17 </div> 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>