tor-browser

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

grid-as-flex-item-should-not-shrink-to-fit-008.html (1735B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Evaluate the behavior of a grid container as Flexbox item</title>
      4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid/#layout-algorithm">
      6 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#flex-lines">
      7 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#propdef-flex-wrap">
      8 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#propdef-align-content">
      9 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#propdef-align-self">
     10 <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-flex">
     11 <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-grid">
     12 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
     13 <meta name="assert" content="A single-line column flexbox shouldn't shrink-to-fit since its flex item is stretching in the main-axis, honoring the 'align-self: normal (behaves as 'stretch')'. The grid item has a relative inline-size, which should be resolved against the stretched grid's inline-size.">
     14 <style>
     15    body { overflow: hidden; }
     16    .flexbox {
     17        display: flex;
     18        flex-flow: column nowrap;
     19        width: 100px;
     20        height: 100px;
     21        background: red;
     22    }
     23    .grid {
     24        display: grid;
     25        justify-self: start;
     26        align-items: baseline;
     27    }
     28    .gridItem {
     29        background: green;
     30        width: 100%;
     31        height: 100px;
     32    }
     33 </style>
     34 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     35 <div class="flexbox">
     36    <div class="grid">
     37        <div class="gridItem"></div>
     38    </div>
     39 </div>