tor-browser

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

white-space-002.xht (1854B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: White-space set to 'pre'</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#propdef-white-space" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop" />
      8         <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-1" />
      9         <link rel="match" href="white-space-002-ref.xht" />
     10         <meta name="flags" content="ahem" />
     11         <meta name="assert" content="The 'white-space' property set to 'pre' does not remove extra spacing when more than one space is next to another." />
     12         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     13         <style type="text/css">
     14             div
     15             {
     16                 font: 1em Ahem;
     17                 line-height: 1em;
     18             }
     19             #test
     20             {
     21                 white-space: pre;
     22             }
     23             #reference
     24             {
     25                 height: 1em;
     26                 width: 7em;
     27             }
     28             #div1, #div3
     29             {
     30                 background: black;
     31             }
     32             #div1, #div2, #div3
     33             {
     34                 display: inline-block;
     35                 height: 1em;
     36                 width: 2em;
     37             }
     38             #div2
     39             {
     40                 height: 1em;
     41                 width: 3em;
     42             }
     43         </style>
     44     </head>
     45     <body>
     46         <p>Test passes if there are two black squares on the page.</p>
     47         <div id="test">XX   XX</div>
     48         <div id="reference"><div id="div1"></div><div id="div2"></div><div id="div3"></div></div>
     49     </body>
     50 </html>