tor-browser

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

intrinsic-percent-replaced-018.html (1112B)


      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=1909761">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="This test verifies that the outer div's height is NOT used as a percentage basis for the table cell's children when computing their intrinsic size contribution.">
      9 
     10 <style>
     11 .outer {
     12  display: table;
     13  width: min-content;
     14  height: 100px;
     15  background: red;
     16  border-right: 10px solid red;
     17 }
     18 .inner {
     19  display: table-cell;
     20  height: 100%;
     21 }
     22 canvas {
     23  vertical-align: top;
     24  background: green;
     25 }
     26 </style>
     27 
     28 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     29 <div class="outer">
     30  <div class="inner">
     31    <canvas width="10" height="4" style="height: 40%"></canvas>
     32    <canvas width="10" height="6" style="height: 60%"></canvas>
     33  </div>
     34 </div>