tor-browser

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

overflow-wrap-anywhere-003.html (975B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: overflow-wrap:anywhere + white-space:break-spaces</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
      6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
      7 <meta name="flags" content="ahem">
      8 <link rel="match" href="reference/overflow-wrap-break-word-003-ref.html">
      9 <meta name="assert" content="anywhere + break-spaces do allow a break
     10 between the last character of a word and the first space of a sequence of preserved spaces
     11 if there are no other wrapping opportunities earlier in the line">
     12 <style>
     13 div {
     14  white-space: break-spaces;
     15  overflow-wrap: anywhere;
     16  font-family: monospace;
     17  width: 4ch;
     18  line-height: 1;
     19  overflow: hidden;
     20  height: 2em;
     21 }
     22 </style>
     23 
     24 <p>This test passes if the word FAIL does not appear below.
     25 <div>PASS FAIL<div>