tor-browser

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

shape-outside-margin-box-border-radius-001-ref.html (1445B)


      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, margin-box, border-radius 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    position: absolute;
     13    width: 200px;
     14    line-height: 0;
     15  }
     16 
     17  .shape {
     18    float: left;
     19    /* Omit shape-outside: margin-box; */
     20    border-radius: 50%;
     21    box-sizing: content-box;
     22    height: 20px;
     23    width: 20px;
     24    padding: 20px;
     25    border: 20px solid lightgreen;
     26    margin: 10px;
     27    background-color: orange;
     28  }
     29 
     30  .box {
     31    position: absolute;
     32    width: 60px;
     33    background-color: blue;
     34  }
     35  </style>
     36 
     37  <main class="container">
     38    <div class="shape"></div>
     39    <div class="box" style="height: 12px; top: 0px; left: 96px;"></div> <!-- Box at corner -->
     40    <div class="box" style="height: 12px; top: 12px; left: 108px;"></div> <!-- Box at corner -->
     41    <div class="box" style="height: 36px; top: 24px; left: 120px;"></div>
     42    <div class="box" style="height: 36px; top: 60px; left: 120px;"></div>
     43    <div class="box" style="height: 12px; top: 96px; left: 108px;"></div> <!-- Box at corner -->
     44    <div class="box" style="height: 12px; top: 108px; left: 96px;"></div> <!-- Box at corner -->
     45  </main>
     46 </html>