tor-browser

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

block-container-replaced-block.html (968B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>margin-trim: block-container-replaced-block</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 level replaced element should have both block-start and block-end trimmed when block is specified">
      9 <style>
     10 .container {
     11    width: min-content;
     12    margin-trim: block;
     13 }
     14 .outer {
     15    background-color: green;
     16    width: 100px;
     17    height: 40px;
     18 }
     19 .child {
     20    display: block;
     21    margin-top: 50px;
     22    margin-bottom: 50px;
     23    background-color: green;
     24    padding-right: 40px;
     25 }
     26 </style>
     27 </head>
     28 <body>
     29    <p>Test passes if there is a filled green square.</p>
     30    <div class="container">
     31        <img class="child" src="/css/support/60x60-green.png"/>
     32    </div>
     33    <div class="outer"></div>
     34 </body>
     35 </html>