tor-browser

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

block-container-block-end-002.html (987B)


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