tor-browser

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

shape-outside-ellipse-051.html (1802B)


      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: sideways-lr, float right, ellipse(closest-side farthest-side at top 40px left 60px) 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-ellipse-051-ref.html">
     12  <meta name="fuzzy" content="maxDifference=0-3; totalPixels=0-2">
     13  <meta name="assert" content="Test the boxes are wrapping around the right float shape defined by the basic shape ellipse(closest-side farthest-side at left 40px top 60px) border-box">
     14  <style>
     15  .container {
     16    writing-mode: sideways-lr;
     17    direction: rtl;
     18    inline-size: 200px;
     19    line-height: 0;
     20  }
     21 
     22  .shape {
     23    float: right;
     24    shape-outside: ellipse(farthest-side closest-side at top 40px left 60px) border-box;
     25    clip-path: ellipse(farthest-side closest-side at top 40px left 60px) 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: 10px;
     32    background-color: orange;
     33  }
     34 
     35  .box {
     36    display: inline-block;
     37    inline-size: 80px;
     38    background-color: blue;
     39  }
     40  </style>
     41 
     42  <main class="container">
     43    <div class="shape"></div>
     44    <div class="box" style="block-size: 24px;"></div> <!-- Box at corner -->
     45    <div class="box" style="block-size: 36px;"></div>
     46    <div class="box" style="block-size: 36px;"></div>
     47    <div class="box" style="block-size: 24px;"></div> <!-- Box at corner -->
     48  </main>
     49 </html>