tor-browser

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

intrinsic-percent-replaced-025.html (1164B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      5 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1926015">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
      8 <meta name="assert" content="This test verifies that the inner flex container's cross-size (height) serves as a percentage basis for its descendants. The canvas can transfer its height through the aspect-ratio to the inline axis when computing its intrinsic inline size contribution. This determines the .test div's intrinsic inline size.">
      9 
     10 <style>
     11 .outer {
     12  display: flex;
     13  flex-direction: column;
     14 }
     15 .inner {
     16  display: flex;
     17  width: 100%;
     18  height: 100px;
     19 }
     20 .test {
     21  height: 100%;
     22  background: green;
     23 }
     24 .test > canvas {
     25  height: 100%;
     26 }
     27 </style>
     28 
     29 <p>Test passes if there is a filled green square.</p>
     30 <div class="outer">
     31  <div class="inner">
     32    <div class="test">
     33      <canvas width="10" height="10"></canvas>
     34    </div>
     35  </div>
     36 </div>