tor-browser

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

flexbox-row-block-start.html (1107B)


      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="block-start trimmed margins should be reflected in computed style">
      7 <style>
      8 flexbox {
      9    display: flex;
     10    width: min-content;
     11    margin-trim: block-start;
     12 }
     13 item {
     14    display: block;
     15    background-color: green;
     16    width: 50px;
     17    height: 50px;
     18    margin-inline: 10px;
     19 }
     20 item:nth-child(1) {
     21    margin-block-start: 10px;
     22 }
     23 item:nth-child(2) {
     24    margin-block-start: -10px;
     25 }
     26 item:nth-child(3) {
     27    margin-block-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-top="0" data-offset-y="8"></item>
     38    <item data-expected-margin-top="0" data-offset-y="8"></item>
     39    <item data-expected-margin-top="0" data-offset-y="8"></item>
     40 </flexbox>
     41 </div>
     42 </body>
     43 </html>