tor-browser

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

block-container-block-001.html (894B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: block-container-block-001</title>
      5 <link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-block">
      7 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
      8 <meta name="assert" content="block should trim block start and end margins for block-level first child">
      9 <style>
     10 .container {
     11    background-color: green;
     12    width: min-content;
     13    margin-trim: block;
     14 }
     15 .outer {
     16    background-color: green;
     17    width: 100px;
     18    height: 50px;
     19 }
     20 .child {
     21    margin-top: 50px;
     22    margin-bottom: 50px;
     23    width: 100px;
     24    height: 50px;
     25 }
     26 </style>
     27 </head>
     28 <body>
     29    <p>Test passes if there is a filled green square.</p>
     30    <div class="container">
     31        <div class="child"></div>
     32    </div>
     33    <div class="outer"></div>
     34 </body>
     35 </html>