tor-browser

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

layout-algorithm_algo-cross-line-001.html (1134B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <title>CSS Grid Layout Test: cross size determination with overflow:scroll</title>
      5        <link rel="author" title="Tomek Wytrebowicz" href="mailto:tomalecpub+github@gmail.com">
      6        <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#algo-cross-line" title="9.4. Cross Size Determination" />
      7        <link rel="match" href="reference/layout-algorithm_algo-cross-line-001-ref.html" />
      8        <meta name="assert" content="This test checks that correct height is applied if overflow: scroll is set" />
      9        <style type="text/css">
     10            .flex {
     11                width: 200px;
     12                display: flex;
     13                background: red;
     14            }
     15 
     16            .flex>* {
     17                background: green;
     18                height: 200px;
     19                flex: 1;
     20                overflow: scroll;
     21            }
     22        </style>
     23    </head>
     24    <body>
     25        <p>Test passes if there is a filled green square with scrollbars and <strong>no red</strong>.</p>
     26 
     27        <div class="flex">
     28            <div></div>
     29            <div></div>
     30        </div>
     31    </body>
     32 </html>