tor-browser

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

flex-box-wrap.html (1153B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Flexbox Test: flex-wrap: wrap</title>
      5    <link rel="author" title="Tsuyoshi Tokuda" href="mailto:tokuda109@gmail.com">
      6    <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property">
      7    <link rel="match" href="reference/flex-box-wrap-ref.html">
      8    <meta name="assert" content="the test passes if you see green box.">
      9    <style type="text/css">
     10 
     11       .flex-box {
     12         position: relative;
     13         display: flex;
     14         flex-wrap: wrap;
     15         margin: 0;
     16         padding-left: 0;
     17         width: 200px;
     18       }
     19       .flex-item,
     20       .error {
     21         list-style-type: none;
     22         width: 120px;
     23         height: 100px;
     24         background-color: green;
     25       }
     26       .error {
     27         position: absolute;
     28         top: 100px;
     29         left: 0;
     30         background-color: red;
     31         z-index: -1;
     32       }
     33 
     34    </style>
     35 </head>
     36 <body>
     37    <p>There should be a green block with no red.</p>
     38 
     39    <ul class="flex-box">
     40      <li class="flex-item">width: 120px</li>
     41      <li class="flex-item">width: 120px</li>
     42      <li class="error"></li>
     43    </ul>
     44 
     45 </body>
     46 </html>