tor-browser

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

flex-trim-all-margins.html (761B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: flex-trim-all-margins</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="flex-trim-all-margins-ref.html">
      8 <meta name="assert" content="specifying all margin edges should trim all of them correctly for the appropriate items">
      9 <style>
     10 flexbox {
     11    display: flex;
     12    width: min-content;
     13    margin-trim: block-start block-end inline-start inline-end;
     14 }
     15 item {
     16    display: block;
     17    background-color: green;
     18    width: 50px;
     19    height: 50px;
     20    margin-inline: 10px;
     21    margin-block: 10px;
     22 }
     23 </style>
     24 </head>
     25 <body>
     26 <flexbox>
     27 <item></item>
     28 <item></item>
     29 <item></item>
     30 </flexbox>
     31 </body>
     32 </html>