tor-browser

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

pre-wrap-008.html (1222B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: white-space: pre-wrap</title>
      4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
      6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-word">
      7 <meta name="flags" content="ahem">
      8 <link rel="match" href="reference/white-space-break-spaces-005-ref.html">
      9 <meta name="assert" content="The word is not broken despite the 'word-break: break-word' if there are previous breaking opportunities, honoring the white-space: pre-wrap value.">
     10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11 <style>
     12 div {
     13   font-size: 20px;
     14   font-family: Ahem;
     15 }
     16 .red {
     17  position: absolute;
     18  background: green;
     19  color: red;
     20  width: 100px;
     21  height: 100px;
     22  z-index: -1;
     23  white-space: pre;
     24 }
     25 .test {
     26  color: green;
     27  line-height: 1em;
     28  width: 5ch;
     29 
     30  white-space: pre-wrap;
     31  word-break: break-word;
     32 }
     33 </style>
     34 <body>
     35  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     36  <div class="red"> XX  <br>XXX</div>
     37  <div class="test"> XX XXX </div>
     38 </body>