tor-browser

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

column-flex-child-with-max-width.html (1108B)


      1 <!DOCTYPE html>
      2 <title>Item in column flex container with max-width</title>
      3 <link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
      4 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#flex-direction-property">
      5 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#flex-items">
      6 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#align-items-property">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="Contents of a flex item with max-width should be laid out within the decreased containing block.">
      9 
     10 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     11 <div style="width: 100px; height: 100px; background: red">
     12  <div style="display: flex; flex-direction: column; width: 200px; height: 100px">
     13    <div style="align-self: start; max-width: 100px">
     14      <div style="display: flow-root; background: green">
     15        <div style="float: left; width: 100px; height: 50px"></div>
     16        <div style="float: left; width: 100px; height: 50px"></div>
     17      </div>
     18    </div>
     19  </div>
     20 </div>