tor-browser

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

shape-outside-border-box-002.html (1846B)


      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 right, 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/#shapes-from-box-values">
     11  <link rel="match" href="reference/shape-outside-border-box-002-ref.html">
     12  <meta name="assert" content="Test the boxes are wrapping around the right float shape defined by the border-box value.">
     13  <style>
     14  .container {
     15    direction: rtl;
     16    width: 200px;
     17    line-height: 0;
     18  }
     19 
     20  .shape {
     21    float: right;
     22    shape-outside: border-box;
     23    box-sizing: content-box;
     24    height: 25px;
     25    width: 25px;
     26    padding: 25px;
     27    border: 25px solid lightgreen;
     28    margin: 25px;
     29    background-color: orange;
     30  }
     31 
     32  .box {
     33    display: inline-block;
     34    width: 25px;
     35    height: 25px;
     36    background-color: blue;
     37  }
     38 
     39  .longbox {
     40    display: inline-block;
     41    width: 200px;
     42    height: 25px;
     43    background-color: blue;
     44  }
     45  </style>
     46 
     47  <main class="container">
     48    <div class="shape"></div>
     49    <div class="shape"></div>
     50    <div class="longbox"></div> <!-- Saturate the margin space -->
     51    <div class="box"></div>
     52    <div class="box"></div>
     53    <div class="box"></div>
     54    <div class="box"></div>
     55    <div class="box"></div>
     56    <div class="longbox"></div> <!-- Saturate the margin space -->
     57 
     58    <div class="longbox"></div> <!-- Saturate the margin space -->
     59    <div class="box"></div>
     60    <div class="box"></div>
     61    <div class="box"></div>
     62    <div class="box"></div>
     63    <div class="box"></div>
     64    <div class="longbox"></div> <!-- Saturate the margin space -->
     65  </main>
     66 </html>