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.html (1580B)


      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</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  <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#shapes-from-box-values">
     11  <link rel="match" href="reference/shape-outside-margin-box-border-radius-001-ref.html">
     12  <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by the margin-box and border-radius value.">
     13  <style>
     14  .container {
     15    width: 200px;
     16    line-height: 0;
     17  }
     18 
     19  .shape {
     20    float: left;
     21    shape-outside: margin-box;
     22    border-radius: 50%;
     23    box-sizing: content-box;
     24    height: 20px;
     25    width: 20px;
     26    padding: 20px;
     27    border: 20px solid lightgreen;
     28    margin: 10px;
     29    background-color: orange;
     30  }
     31 
     32  .box {
     33    display: inline-block;
     34    width: 60px;
     35    background-color: blue;
     36  }
     37  </style>
     38 
     39  <main class="container">
     40    <div class="shape"></div>
     41    <div class="box" style="height: 12px;"></div> <!-- Box at corner -->
     42    <div class="box" style="height: 12px;"></div> <!-- Box at corner -->
     43    <div class="box" style="height: 36px;"></div>
     44    <div class="box" style="height: 36px;"></div>
     45    <div class="box" style="height: 12px;"></div> <!-- Box at corner -->
     46    <div class="box" style="height: 12px;"></div> <!-- Box at corner -->
     47  </main>
     48 </html>