percent-width-ignored-002.tentative.html (814B)
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="Should cell's percent width be ignored when its table is nested in a shrink to fit block?" /> 8 <p>Edge 44.17763 and Chrome 70 make this 300px wide. FF makes it 150px wide.</p> 9 <div id="stf" style="position:absolute; background:blue;" data-expected-width=300> 10 <table cellspacing="0" cellpadding="0"> 11 <td style="width:50%;"> 12 <div style="width:150px; height:150px;"></div> 13 </td> 14 </table> 15 </div> 16 <script> 17 checkLayout('#stf'); 18 </script>