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-008.html (1859B)


      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: vertical-lr, float right, border-box, border-top-right-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-008-ref.html">
     12  <meta name="assert" content="Test the boxes are wrapping around the right float shape defined by the border-box and border-top-right-radius value under vertical-lr writing-mode.">
     13  <style>
     14  .container {
     15    writing-mode: vertical-lr;
     16    direction: rtl;
     17    inline-size: 200px;
     18    line-height: 0;
     19  }
     20 
     21  .shape {
     22    float: right;
     23    shape-outside: border-box;
     24    border-top-right-radius: 60px 40px;
     25    box-sizing: content-box;
     26    block-size: 40px;
     27    inline-size: 40px;
     28    padding: 20px;
     29    border: 20px solid lightgreen;
     30    margin: 20px;
     31    background-color: orange;
     32  }
     33 
     34  .box {
     35    display: inline-block;
     36    inline-size: 60px;
     37    background-color: blue;
     38  }
     39 
     40  .longbox {
     41    display: inline-block;
     42    inline-size: 200px;
     43    block-size: 20px;
     44    background-color: blue;
     45  }
     46  </style>
     47 
     48  <main class="container">
     49    <div class="shape"></div>
     50    <div class="longbox"></div> <!-- Saturate the margin space -->
     51    <div class="box" style="block-size: 24px;"></div> <!-- Box at corner -->
     52    <div class="box" style="block-size: 36px;"></div>
     53    <div class="box" style="block-size: 36px;"></div>
     54    <div class="box" style="block-size: 24px;"></div> <!-- Box at corner -->
     55    <div class="longbox"></div> <!-- Saturate the margin space -->
     56  </main>
     57 </html>