tor-browser

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

word-break-break-all-030.html (1222B)


      1 <!DOCTYPE html>
      2 <html lang=en>
      3 <meta charset="utf-8">
      4 <title>CSS Text Test: word-break: break-all</title>
      5 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      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-word-break-break-all">
      8 <link rel="match" href="reference/word-break-break-all-010-ref.html">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <meta name="flags" content="Ahem">
     11 <meta name="assert" content="word-break: break-all applies correctly when there is styled text using 'span' elemetns.">
     12 <style>
     13 div {
     14  position: relative;
     15  font: 25px / 1 Ahem;
     16 }
     17 .ref {
     18  position: absolute;
     19  background: green;
     20  color: red;
     21  height: 100px;
     22  z-index: -1;
     23 }
     24 .test {
     25  color: transparent;
     26  width: 4ch;
     27  word-break: break-all;
     28 }
     29 </style>
     30 <body>
     31  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     32  <div class="ref"><span style="color: green">XX</span>XX<br>XX</div>
     33  <div class="test">XX<span style="color: green">XXXX</span>XX</div>
     34 </body>