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-004-ref.html (1384B)


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