replaced-fractional-height-from-aspect-ratio-2.html (530B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://crbug.com/1239395"> 3 <meta name="assert" content="The height of a replaced element can depend on the default natural width 300." /> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/check-layout-th.js"></script> 7 8 <div id=log></div> 9 <!-- 915977 = 299013.12 * (919 / 300) --> 10 <canvas height="919" style="width:299013.12px" data-expected-height="915977"></canvas> 11 12 <script> 13 checkLayout('canvas'); 14 </script>