tor-browser

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

shape-outside-circle-041.html (1472B)


      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, circle(100%)</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/#supported-basic-shapes">
     11  <link rel="match" href="reference/shape-outside-circle-041-ref.html">
     12  <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by the basic shape circle(100%) value.">
     13  <style>
     14  .container {
     15    width: 200px;
     16    line-height: 0;
     17  }
     18 
     19  .shape {
     20    float: left;
     21    shape-outside: circle(100%);
     22    clip-path: circle(100%); /* Rendered as a rectangle */
     23    box-sizing: content-box;
     24    height: 40px;
     25    width: 40px;
     26    padding: 20px;
     27    border: 20px solid lightgreen;
     28    background-color: orange;
     29  }
     30 
     31  .box {
     32    display: inline-block;
     33    width: 60px;
     34    background-color: blue;
     35  }
     36  </style>
     37 
     38  <main class="container">
     39    <div class="shape"></div>
     40    <div class="box" style="height: 12px;"></div>
     41    <div class="box" style="height: 12px;"></div>
     42    <div class="box" style="height: 36px;"></div>
     43    <div class="box" style="height: 36px;"></div>
     44    <div class="box" style="height: 12px;"></div>
     45    <div class="box" style="height: 12px;"></div>
     46  </main>
     47 </html>