tor-browser

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

block-container-block-end-self-collapsing-children-nested-at-bottom.html (1706B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-block">
      6 <meta name="assert" content="all of the self-collapsing children at the bottom of the block should be positioned at the bottom of the block">
      7 <style>
      8 .trim {
      9    margin-trim: block;
     10 }
     11 container {
     12    display: block;
     13 }
     14 item {
     15    display: block;
     16    inline-size: 50px;
     17    block-size: 50px;
     18    background-color: green;
     19 }
     20 .collapsed {
     21    block-size: 0px;
     22 }
     23 </style>
     24 <script src="/resources/testharness.js"></script>
     25 <script src="/resources/testharnessreport.js"></script>
     26 <script src="/resources/check-layout-th.js"></script>
     27 </head>
     28 <body onload="checkLayout('.collapsed')">
     29    <div id="target">
     30        <container class="trim">
     31            <container>
     32                <item></item>
     33                <item data-offset-y="58" class="collapsed" style="margin-block: 10px 20px;">
     34                    <item data-offset-y="58" class="collapsed" style="margin-block: -40px 50px;"></item>
     35                    <item data-offset-y="58" class="collapsed" style="margin-block: 35px 5px;">
     36                        <item data-offset-y="58" class="collapsed" style="margin-block: 300px 100px"></item>
     37                    </item>
     38                </item>
     39            </container>
     40            <item data-offset-y="58" class="collapsed" style="margin-block: 40px 23px;"></item>
     41            <item data-offset-y="58" class="collapsed" style="margin-block: 100px 200px">
     42                <item data-offset-y="58" class="collapsed" style="margin-block: -100px -200px;"></item>
     43            </item>
     44        </container>
     45    </div>
     46 </body>
     47 </html>