tor-browser

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

shape-outside-inset-023.html (1948B)


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