tor-browser

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

flex-column-block-multiline.html (997B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: flex-column-block-multiline</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="block-start should be trimmed for items at the start of the flex line and block-end should be trimmed for items at the end of the flex line">
      9 <style>
     10 flexbox {
     11    display: flex;
     12    width: min-content;
     13    height: 100px;
     14    flex-wrap: wrap;
     15    flex-direction: column;
     16    margin-trim: block;
     17 }
     18 item {
     19    display: block;
     20    background-color: green;
     21    width: 50px;
     22    height: 50px;
     23 }
     24 item:nth-child(odd) {
     25    margin-block-start: 25px;
     26 }
     27 item:nth-child(even) {
     28    margin-block-end: 25px;
     29 }
     30 </style>
     31 </head>
     32 <body>
     33 <p>Test passes if there is a filled green square.</p>
     34 <flexbox>
     35 <item></item>
     36 <item></item>
     37 <item></item>
     38 <item></item>
     39 </flexbox>
     40 </body>
     41 </html>