tor-browser

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

shape-outside-polygon-019.html (1904B)


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