tor-browser

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

textarea-pre-wrap-006.html (1353B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: preserved white space at the end of and white-space:pre-wrap does not change based on line-break:strict in a textarea</title>
      4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
      6 <link rel="match" href="reference/textarea-pre-wrap-001-ref.html">
      7 <meta name="assert" content="preserved white space at the end of the line is not wrapped when the white-space property is set to pre-wrap, even if line-break is strict in a textarea.">
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 <style>
     10 textarea {
     11  word-wrap: initial; /*deprecated alias*/
     12  overflow-wrap: initial;
     13  line-break: initial;
     14  word-break: initial;
     15  margin: 0;
     16  padding: 0;
     17  border: none;
     18  outline: none;
     19  resize: none;
     20  overflow: hidden; /* I don't want scrollbars, and overflow:visible isn't typically supported on textarea */
     21 
     22  font-size: 20px;
     23  font-family: Ahem;
     24  line-height: 1em;
     25  white-space: pre-wrap;
     26  color: green;
     27 
     28  background: linear-gradient(red, red) 0 0/2ch 2ch no-repeat;
     29 
     30  width: 4ch;
     31  line-break: strict;
     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  <textarea>XX    XX</textarea>
     37 </body>