tor-browser

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

shape-outside-border-box-border-radius-001.html (1677B)


      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, 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-border-box-border-radius-001-ref.html">
     12  <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by the border-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: border-box;
     22    border-radius: 50%;
     23    box-sizing: content-box;
     24    height: 40px;
     25    width: 40px;
     26    padding: 20px;
     27    border: 20px solid lightgreen;
     28    margin: 20px;
     29    background-color: orange;
     30  }
     31 
     32  .box {
     33    display: inline-block;
     34    width: 60px;
     35    background-color: blue;
     36  }
     37 
     38  .longbox {
     39    display: inline-block;
     40    width: 200px;
     41    height: 20px;
     42    background-color: blue;
     43  }
     44  </style>
     45 
     46  <main class="container">
     47    <div class="shape"></div>
     48    <div class="longbox"></div> <!-- Saturate the margin space -->
     49    <div class="box" style="height: 24px;"></div> <!-- Box at corner -->
     50    <div class="box" style="height: 36px;"></div>
     51    <div class="box" style="height: 36px;"></div>
     52    <div class="box" style="height: 24px;"></div> <!-- Box at corner -->
     53    <div class="longbox"></div> <!-- Saturate the margin space -->
     54  </main>
     55 </html>