tor-browser

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

white-space-letter-spacing-001.html (920B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4 <meta charset="utf-8"/>
      5 <title>CSS Test: letter-spacing is not applied to preserved line-breaks</title>
      6 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"/>
      7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#letter-spacing-property"/>
      8 <link rel="match" href="reference/white-space-letter-spacing-001-ref.html"/>
      9 <style>
     10 div {
     11  font: 16px monospace;
     12  float: left;
     13  clear: left;
     14  border: 1px solid silver;
     15  margin: 1em;
     16  letter-spacing: .5em;
     17 }
     18 .test1 {
     19  white-space: pre;
     20 }
     21 .test2 {
     22  white-space: pre-line;
     23 }
     24 .test3 {
     25  white-space: pre-wrap;
     26 }
     27 .test4 {
     28  white-space: break-spaces;
     29 }
     30 </style>
     31 <p>The five boxes below should all look the same:</p>
     32 <div>Two lines<br>of text</div>
     33 <div class=test1>Two lines
     34 of text</div>
     35 <div class=test2>Two lines
     36 of text</div>
     37 <div class=test3>Two lines
     38 of text</div>
     39 <div class=test4>Two lines
     40 of text</div>