tor-browser

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

text-align-white-space-001.xht (2151B)


      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: Text-align set to 'justify' with 'white-space' set to 'pre'</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-28 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" />
      8 		<link rel="match" href="text-align-white-space-001-ref.xht" />
      9 
     10         <meta name="flags" content="ahem may" /> <!-- "may" because level 3 makes it no longer mandatory -->
     11         <meta name="assert" content="Setting 'text-align' to 'justify' and 'white-space' to 'pre', text-align is computed to its initial value." />
     12         <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-property" />
     13         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14         <style type="text/css">
     15             div
     16             {
     17                 font: 20px/1 Ahem;
     18                 position: relative;
     19                 width: 6em;
     20             }
     21             div div
     22             {
     23                 position: absolute;
     24             }
     25             #test
     26             {
     27                 color: green;
     28                 text-align: justify;
     29                 white-space: pre;
     30 
     31             }
     32             .red
     33             {
     34                 color: red;
     35             }
     36             .green
     37             {
     38                 color: green;
     39             }
     40         </style>
     41     </head>
     42     <body>
     43         <p>Test passes if there is <strong>no red</strong>.</p>
     44         <div>
     45             <div><span class="red">xxxx</span><span class="green">x</span><span class="red">xxxx</span><span class="green">x</span><span class="red">xxxx</span> <span class="red">xxxx</span><span class="green">x</span><span class="red">xxxx</span><span class="green">x</span><span class="red">xxxx</span></div>
     46             <div id="test">xxxx xxxx xxxx
     47 xxxx xxxx xxxx
     48             </div>
     49         </div>
     50     </body>
     51 </html>