tor-browser

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

shape-outside-border-box-001-ref.html (1566B)


      1 <!DOCTYPE html>
      2 <!-- Any copyright is dedicated to the Public Domain.
      3   - http://creativecommons.org/publicdomain/zero/1.0/ -->
      4 
      5 <html>
      6  <meta charset="utf-8">
      7  <title>CSS Shape Test: float left, border-box reference</title>
      8  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      9  <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
     10  <style>
     11  .container {
     12    width: 200px;
     13    line-height: 0;
     14  }
     15 
     16  .shape {
     17    float: left;
     18    /* Omit shape-outside: border-box; */
     19    box-sizing: content-box;
     20    height: 25px;
     21    width: 25px;
     22    padding: 25px;
     23    border: 25px solid lightgreen;
     24    margin-left: 25px;
     25    background-color: orange;
     26  }
     27 
     28  .box {
     29    display: inline-block;
     30    width: 25px;
     31    height: 25px;
     32    background-color: blue;
     33  }
     34 
     35  .longbox {
     36    display: inline-block;
     37    width: 200px;
     38    height: 25px;
     39    background-color: blue;
     40  }
     41  </style>
     42 
     43  <main class="container">
     44    <div class="longbox"></div>  <!-- Saturate the margin space -->
     45    <div class="shape"></div>
     46    <div class="box"></div>
     47    <div class="box"></div>
     48    <div class="box"></div>
     49    <div class="box"></div>
     50    <div class="box"></div>
     51    <div class="longbox"></div>  <!-- Saturate the margin space -->
     52 
     53    <div class="longbox"></div>  <!-- Saturate the margin space -->
     54    <div class="shape"></div>
     55    <div class="box"></div>
     56    <div class="box"></div>
     57    <div class="box"></div>
     58    <div class="box"></div>
     59    <div class="box"></div>
     60    <div class="longbox"></div>  <!-- Saturate the margin space -->
     61  </main>
     62 </html>