tor-browser

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

break-spaces-newline-015.html (1466B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Text: 'white-space: break-spaces', 3 white spaces and 3 line feeds</title>
      6 
      7  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
      8  <link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property">
      9  <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
     10  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     11 
     12  <meta content="This test checks that when 'white-space' is set to 'break-spaces', then line feeds (&amp;NewLine; in the code) are preserved, just like with 'white-space: pre' or with 'white-space: pre-wrap'.">
     13 
     14  <style>
     15  div
     16    {
     17      font-family: Ahem;
     18      font-size: 25px;
     19      line-height: 1;
     20      width: 4em;
     21    }
     22 
     23  div#overlapped-red-reference
     24    {
     25      background-color: red;
     26      height: 4em;
     27    }
     28 
     29  div#overlapping-green-test
     30    {
     31      background-color: green;
     32      bottom: 4em;
     33      color: red;
     34      position: relative;
     35      white-space: break-spaces;
     36    }
     37  </style>
     38 
     39  <p>Test passes if there is a filled green square and <strong>no red</strong>.
     40 
     41  <div id="overlapped-red-reference"></div>
     42 
     43  <div id="overlapping-green-test">&NewLine; &NewLine; &NewLine; </div>
     44  <!--                                      ^         ^         ^
     45                            3 white spaces: 1         2         3
     46  -->
     47 
     48 <!--
     49 
     50  &NewLine; == Line feed == &#x000A; == &#0010;
     51 
     52 -->