tor-browser

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

block-container-inline-001.html (752B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: block-container-inline-001</title>
      5 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-block">
      6 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
      7 <meta name="assert" content="block should not trim inline margins for block-level children">
      8 <style>
      9 .container {
     10    width: 100px;
     11    margin-trim: inline;
     12 }
     13 
     14 .child {
     15    background-color: green;
     16    width: 100px;
     17    height: 50px;
     18    margin-inline: 50px;
     19    position: relative;
     20    left: -50px;
     21 }
     22 </style>
     23 </head>
     24 <body>
     25    <p>Test passes if there is a filled green square.</p>
     26    <div class="container">
     27        <div class="child"></div>
     28        <div class="child"></div>
     29    </div>
     30 </body>
     31 </html>