tor-browser

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

white-space-processing-036.xht (1748B)


      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: Two spaces adjoining with 'white-space' 'pre-line'/'pre-wrap'</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#white-space-model" />
      7         <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-1" />
      8 	<link rel="match" href="white-space-processing-031-ref.xht" />
      9         <meta name="flags" content="ahem" />
     10         <meta name="assert" content="One space with 'white-space' set to 'pre-line' adjoining a space with 'white-space' set to 'pre-wrap' retain two spaces." />
     11         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12         <style type="text/css">
     13             #div1
     14             {
     15                 font: 16px/1em Ahem;
     16             }
     17             #span1
     18             {
     19                 white-space: pre-line;
     20             }
     21             #span2
     22             {
     23                 white-space: pre-wrap;
     24             }
     25             #div2, #div3
     26             {
     27                 background: black;
     28                 display: inline-block;
     29                 height: 1em;
     30                 width: 1em;
     31             }
     32             #div3
     33             {
     34                 margin-left: 2em;
     35             }
     36         </style>
     37     </head>
     38     <body>
     39         <p>Test passes if there are only two boxes below.</p>
     40         <div id="div1">
     41             <span id="span1">X&#32;</span><span id="span2">&#32;X</span>
     42             <div>
     43                 <div id="div2"></div><div id="div3"></div>
     44             </div>
     45         </div>
     46     </body>
     47 </html>