tor-browser

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

layout-algorithm_algo-cross-line-002.html (1196B)


      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-002-ref.html" />
      8        <meta name="assert" content="This test checks that correct width is applied if overflow: scroll is set" />
      9        <style type="text/css">
     10            .flex {
     11                width: 200px;
     12                height: 200px;
     13                display: flex;
     14                background: red;
     15                flex-direction: column;
     16            }
     17 
     18            .flex>* {
     19                background: green;
     20                width: 200px;
     21                height: 100px;
     22                overflow: scroll;
     23            }
     24        </style>
     25    </head>
     26    <body>
     27        <p>Test passes if there is a filled green square with scrollbars and <strong>no red</strong>.</p>
     28 
     29        <div class="flex">
     30            <div></div><div></div>
     31        </div>
     32    </body>
     33 </html>