tor-browser

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

pre-wrap-010.html (1456B)


      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" title="3. White Space and Wrapping: the white-space property" href="https://www.w3.org/TR/css-text-3/#white-space-property">
      6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
      7 <link rel="help" title="5.5. Overflow Wrapping: the overflow-wrap/word-wrap property " href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property">
      8 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
      9 <meta name="flags" content="ahem">
     10 <link rel="match" href="reference/pre-wrap-001-ref.html">
     11 <meta name="assert" content="The word is not broken if there are previous breaking opportunities, honoring the white-space: pre-wrap value.">
     12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     13 <style>
     14 div {
     15   font-size: 20px;
     16   font-family: Ahem;
     17   line-height: 1em;
     18 }
     19 .red {
     20  position: absolute;
     21  white-space: pre;
     22  background: green;
     23  color: red;
     24  width: 40px;
     25  height: 40px;
     26  z-index: -1;
     27 }
     28 .test {
     29  color: green;
     30  width: 2ch;
     31 
     32  white-space: pre-wrap;
     33  overflow-wrap: anywhere;
     34 }
     35 </style>
     36 <body>
     37  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     38  <div class="red"><br>XX</div>
     39  <div class="test"> XX</div>
     40 </body>