tor-browser

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

block-container-block-start-002.html (988B)


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