tor-browser

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

flexbox-column-inline-start.html (1118B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <link rel="author" href="mailto:sammy.gill@apple.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
      6 <meta name="assert" content="trimmed inline-start margins should be reflected in computed style">
      7 <style>
      8 flexbox {
      9    display: flex;
     10    flex-direction: column;
     11    width: min-content;
     12    margin-trim: inline-start;
     13 }
     14 item {
     15    display: block;
     16    background-color: green;
     17    width: 50px;
     18    height: 50px;
     19 }
     20 item:nth-child(1) {
     21    margin-inline-start: 10px;
     22 }
     23 item:nth-child(2) {
     24    margin-inline-start: -10px;
     25 }
     26 item:nth-child(3) {
     27    margin-inline-start: 30%;
     28 }
     29 </style>
     30 <script src="/resources/testharness.js"></script>
     31 <script src="/resources/testharnessreport.js"></script>
     32 <script src="/resources/check-layout-th.js"></script>
     33 </head>
     34 <body onload="checkLayout('flexbox > item')">
     35 <div id="target">
     36 <flexbox>
     37    <item data-expected-margin-left="0" data-offset-x="8"></item>
     38    <item data-expected-margin-left="0" data-offset-x="8"></item>
     39    <item data-expected-margin-left="0" data-offset-x="8"></item>
     40 </flexbox>
     41 </div>
     42 </body>
     43 </html>