tor-browser

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

shape-outside-ellipse-050.html (1779B)


      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 left, 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-050-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 left 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    inline-size: 200px;
     18    line-height: 0;
     19  }
     20 
     21  .shape {
     22    float: left;
     23    shape-outside: ellipse(farthest-side closest-side at top 40px left 60px) border-box;
     24    clip-path: ellipse(farthest-side closest-side at top 40px left 60px) border-box;
     25    box-sizing: content-box;
     26    block-size: 40px;
     27    inline-size: 40px;
     28    padding: 10px 20px;
     29    border: solid lightgreen;
     30    border-width: 10px;
     31    background-color: orange;
     32  }
     33 
     34  .box {
     35    display: inline-block;
     36    inline-size: 80px;
     37    background-color: blue;
     38  }
     39  </style>
     40 
     41  <main class="container">
     42    <div class="shape"></div>
     43    <div class="box" style="block-size: 24px;"></div> <!-- Box at corner -->
     44    <div class="box" style="block-size: 36px;"></div>
     45    <div class="box" style="block-size: 36px;"></div>
     46    <div class="box" style="block-size: 24px;"></div> <!-- Box at corner -->
     47  </main>
     48 </html>