tor-browser

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

shape-outside-inset-016.html (1512B)


      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, inset(20px) border-box</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-inset-016-ref.html">
     12  <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by the inset(20px) border-box value.">
     13  <style>
     14  .container {
     15    width: 200px;
     16    line-height: 0;
     17  }
     18 
     19  .shape {
     20    float: left;
     21    shape-outside: inset(20px) border-box;
     22    clip-path: inset(20px) border-box;
     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  .long {
     39    width: 200px;
     40  }
     41  </style>
     42 
     43  <main class="container">
     44    <div class="shape"></div>
     45    <div class="long box" style="height: 40px;"></div> <!-- Fill the margin and inset space -->
     46    <div class="box" style="height: 40px;"></div>
     47    <div class="box" style="height: 40px;"></div>
     48    <div class="long box" style="height: 40px;"></div> <!-- Fill the margin and inset space -->
     49  </main>
     50 </html>