tor-browser

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

block-container-block-002.html (1078B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: block-container-block-002</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 ONLY block-level first/last children">
      9 <style>
     10 .container {
     11    background-color: green;
     12    width: min-content;
     13    margin-trim: block;
     14 }
     15 .first {
     16    margin-top: 50px;
     17    height: 25px;
     18 }
     19 .second {
     20    width: 100px;
     21    height: 10px;
     22    margin-bottom: 15px;
     23 }
     24 .third {
     25    width: 100px;
     26    height: 25px;
     27    margin-bottom: 50px;
     28 }
     29 .outer {
     30    width: 100px;
     31    height: 25px;
     32    background-color: green;
     33 }
     34 </style>
     35 </head>
     36 <body>
     37    <p>Test passes if there is a filled green square.</p>
     38    <div class="container">
     39        <div class="first"></div>
     40        <div class="second"></div>
     41        <div class="third"></div>
     42    </div>
     43    <div class="outer"></div>
     44 </body>
     45 </html>