tor-browser

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

flex-column-shrink.html (836B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: flex-column-shrink</title>
      5 <link rel="author" href="mailto:sammy.gill@apple.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
      7 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
      8 <meta name="assert" content="content should fill all available space when flex item is larger than the container and the margins are trimmed">
      9 <style>
     10 flexbox {
     11    display: flex;
     12    flex-direction: column;
     13    width: min-content;
     14    height: 100px;
     15    margin-trim: block;
     16 }
     17 item {
     18    display: block;
     19    background-color: green;
     20    margin-block: 25px;
     21    flex: 0 1 auto;
     22    width: 100px;
     23    height: 150px;
     24 }
     25 </style>
     26 </head>
     27 <body>
     28 <p>Test passes if there is a filled green square.</p>
     29 <flexbox>
     30 <item></item>
     31 </flexbox>
     32 </body>
     33 </html>