tor-browser

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

word-break-break-all-024.html (1164B)


      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="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
      6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
      7 <link rel="match" href="reference/word-break-break-all-010-ref.html">
      8 <meta name="assert" content="break-all breaks before the first backslash character because UAX14 rules forbid to break after PR class.">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11 div {
     12  position: relative;
     13  font-size: 20px;
     14  font-family: Ahem;
     15  line-height: 1em;
     16 }
     17 .red {
     18  position: absolute;
     19  width: 100px;
     20  height: 100px;
     21  background: green;
     22  color: red;
     23  z-index: -1;
     24 }
     25 .test {
     26  color: green;
     27  width: 4ch;
     28  word-break: break-all;
     29 }
     30 </style>
     31 <body>
     32  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     33  <div class="red">XXX<br>XX</div>
     34  <div class="test">XXX\X</div>
     35 </body>