tor-browser

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

white-space-pre-052.html (1033B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Text: inline starting with a collapsible white space</title>
      6 
      7  <!--
      8  Same as
      9 
     10  http://test.csswg.org/suites/css-text-3_dev/nightly-unstable/html/white-space-mixed-003.htm
     11 
     12  but more compact
     13  -->
     14 
     15  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
     16  <link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-phase-2">
     17  <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
     18  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     19 
     20  <style>
     21  div
     22    {
     23      background-color: red;
     24      color: green;
     25      display: inline-block;
     26      font-family: Ahem;
     27      font-size: 50px;
     28      line-height: 1;
     29     }
     30 
     31  span#pre
     32    {
     33      white-space: pre;
     34    }
     35  </style>
     36 
     37  <p>Test passes if there is a filled green square and <strong>no red</strong>.
     38 
     39  <div><span id="pre">AB&NewLine;</span><span> CD</span></div>
     40 
     41 <!--
     42 
     43  &NewLine; == Line feed == &#x000A; == &#0010;
     44 
     45 -->