tor-browser

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

float-nowrap-4.html (795B)


      1 <!doctype html>
      2 <title>CSS Test: Floats in nowrap context</title>
      3 <link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
      4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
      5 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
      6 <link rel="author" href="https://www.mozilla.org" title="Mozilla">
      7 <link rel="match" href="float-nowrap-4-ref.html">
      8 <link rel="match" href="float-nowrap-4-ref2.html">
      9 <style>
     10  div {
     11    width: 10ch;
     12    font-family: monospace;
     13  }
     14  .float {
     15    float: right;
     16    width: 5ch;
     17    height: 5ch;
     18    background: blue;
     19  }
     20  .nowrap {
     21    white-space: nowrap;
     22  }
     23 </style>
     24 <div>
     25  Some
     26  <span class="nowrap">
     27    <span class="float"></span> text that overflows my parent.
     28  </span>
     29 </div>