tor-browser

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

shape-outside-margin-box-border-radius-007.html (1768B)


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