tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

svg-root-as-flex-item-006.html (1000B)


      1 <!DOCTYPE html>
      2 <title>SVG root as flex item</title>
      3 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      4 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item" title="Part E">
      5 <link rel="help" href="https://crbug.com/965672">
      6 <meta name="assert"
      7  content="When SVG has aspect ratio and no intrinsic height its flex-basis is available width * ratio, not 150px, when in a column flexbox." />
      8 
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script src="/resources/check-layout-th.js"></script>
     12 
     13 The test passes if you see a 600x300 blue rectangle.
     14 
     15 <div style="display: flex; flex-direction: column; width: 600px;">
     16  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" data-expected-bounding-client-rect-width=600
     17    data-expected-bounding-client-rect-height=300>
     18    <rect x="0" y="0" width="200" height="100" fill="blue" />
     19  </svg>
     20 </div>
     21 
     22 <script>
     23  checkLayout('svg');
     24 </script>