tor-browser

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

word-break-break-all-017.html (1494B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: word-break: break-all</title>
      4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://drafts.csswg.org/css-text-3/#white-space-property">
      6 <link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
      7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
      8 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
      9 <meta name="flags" content="ahem">
     10 <link rel="match" href="reference/word-break-break-all-010-ref.html">
     11 <meta name="assert" content="break-all + break-spaces do not allow a break
     12 between the last character of a word and the first space of a sequence of preserved spaces
     13 if there are other wrapping opportunities earlier in the line.">
     14 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     15 <style>
     16 div {
     17  font: 25px/1 Ahem;
     18  width: 4ch;
     19 }
     20 .red {
     21  position: absolute;
     22  white-space: pre;
     23  color: red;
     24  background: green;
     25  z-index: -1;
     26 }
     27 .test {
     28  white-space: break-spaces;
     29  word-break: break-all;
     30  color: green;
     31 }
     32 </style>
     33 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     34 <div class="red">X X <br>X X <br>X X <br>XX X</div>
     35 <div class="test">X XX XX X XX X</div>