tor-browser

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

pre-wrap-016.html (1157B)


      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/pre-wrap-001-ref.html">
      9 <meta name="assert" content="The word is not broken 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   line-height: 1em;
     16 }
     17 .red {
     18  position: absolute;
     19  white-space: pre;
     20  background: green;
     21  color: red;
     22  width: 40px;
     23  height: 40px;
     24  z-index: -1;
     25 }
     26 .test {
     27  color: green;
     28  width: 2ch;
     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"><br>XX</div>
     37  <div class="test"> XX</div>
     38 </body>