tor-browser

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

flex-row-orthogonal-item.html (902B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: flex-row-orthogonal-item</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="orthogonal items have correct margins trimmed according to the flexbox's writing mode">
      9 <style>
     10 flexbox {
     11    display: flex;
     12    width: min-content;
     13    margin-trim: inline
     14 }
     15 item {
     16    display: block;
     17    background-color: green;
     18    width: 50px;
     19    height: 100px;
     20 }
     21 .orthogonal {
     22    writing-mode: vertical-rl;
     23 }
     24 item:first-child {
     25    margin-block-end: 10px;
     26 }
     27 item:last-child {
     28    margin-inline-end: 10px;
     29 }
     30 </style>
     31 </head>
     32 <body>
     33 <p>Test passes if there is a filled green square.</p>
     34 <flexbox>
     35 <item class="orthogonal"></item>
     36 <item></item>
     37 </flexbox>
     38 </body>
     39 </html>