tor-browser

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

white-space-007.xht (1976B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Test: white-space</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite" />
     11   <link rel="author" title="Justin Boss" href="http://www.bosspro.org/contactus/" />
     12   <link rel="help" title="C.5.76 Section 16.6.1 The 'white-space' processing model" href="https://www.w3.org/TR/CSS21/changes.html#q21.363" />
     13   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model" />
     14   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop" />
     15   <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-1" />
     16   <link rel="match" href="white-space-007-ref.xht" />
     17   <meta name="flags" content="ahem" />
     18   <meta name="assert" content="'white-space: normal' and 'white-space: nowrap' should collapse sequences of white space. Regarding wrapping, line breaking opportunities are determined on the text prior to white space collapsing steps." />
     19 
     20   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     21   <style type="text/css"><![CDATA[
     22   div#test
     23   {
     24   background-color: orange;
     25   color: orange;
     26   font: 50px/1 Ahem;
     27   width: 500px;
     28   white-space: normal;
     29   }
     30 
     31   span
     32   {
     33   white-space: nowrap;
     34   }
     35 
     36   div#control
     37   {
     38   background-color: blue;
     39   height: 100px;
     40   width: 500px;
     41   }
     42   ]]></style>
     43 
     44  </head>
     45 
     46  <body>
     47 
     48   <p>Test passes if the wide orange and blue rectangles are the <strong>same width</strong> and the <strong>same height</strong>.</p>
     49 
     50   <div id="test"><span>X </span> <span>X </span> <span>X </span> <span>X </span> <span>X </span> <span>X </span> <span>X </span> <span>X </span> <span>X </span> <span>X </span></div>
     51 
     52   <div id="control">&nbsp;</div>
     53 
     54  </body>
     55 </html>