tor-browser

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

shape-outside-polygon-018.html (1881B)


      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: horizontal-tb, float left, polygon(60px 20px, 100px 60px, 20px 60px, 60px 100px) 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-polygon-018-ref.html">
     12  <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by the polygon(60px 20px, 100px 60px, 20px 60px, 60px 100px) border-box value under horizontal-tb writing-mode.">
     13  <style>
     14  .container {
     15    writing-mode: horizontal-tb;
     16    width: 200px;
     17    line-height: 0;
     18  }
     19 
     20  .shape {
     21    float: left;
     22    shape-outside: polygon(60px 20px, 100px 60px, 20px 60px, 60px 100px) border-box;
     23    clip-path: polygon(60px 20px, 100px 60px, 20px 60px, 60px 100px) border-box;
     24    box-sizing: content-box;
     25    height: 40px;
     26    width: 40px;
     27    padding: 20px;
     28    margin: 20px;
     29    border: 20px solid lightgreen;
     30    background-color: orange;
     31  }
     32 
     33  .box {
     34    display: inline-block;
     35    width: 80px;
     36    background-color: blue;
     37  }
     38 
     39  .long {
     40    width: 200px;
     41  }
     42  </style>
     43 
     44  <main class="container">
     45    <div class="shape"></div>
     46    <div class="long box" style="height: 30px;"></div> <!-- Fill the margin and partial border space -->
     47    <div class="box" style="height: 30px;"></div>
     48    <div class="box" style="height: 20px;"></div>
     49    <div class="box" style="height: 20px;"></div>
     50    <div class="box" style="height: 30px;"></div>
     51    <div class="long box" style="height: 30px;"></div> <!-- Fill the margin and partial border space -->
     52  </main>
     53 </html>