tor-browser

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

white-space-processing-014.xht (1747B)


      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 'normal' and linefeed characters</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/#line-break-transform"/>
      8         <link rel="match" href="white-space-processing-014-ref.xht"/>
      9         <meta name="flags" content="ahem may" />
     10         <meta name="assert" content="Linefeed characters are transformed into spaces, zero-width space, or not rendered when 'white-space' is set to 'normal'. Under css-text-3 rules, they must be transformed into spaces" />
     11         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12         <style type="text/css">
     13             div
     14             {
     15                 font: 16px/1em Ahem;
     16                 height: 1em;
     17                 margin-bottom: 3px;
     18             }
     19             #div1
     20             {
     21                 background-color: blue;
     22                 width: 5em;
     23             }
     24             #div2
     25             {
     26                 background-color: orange;
     27                 width: 4em;
     28             }
     29             span
     30             {
     31                 background-color: black;
     32                 white-space: normal;
     33             }
     34         </style>
     35     </head>
     36     <body>
     37         <p>Test passes if the black box below is the same width as either the blue box or the orange box.</p>
     38         <div id="div1"></div>
     39         <div>
     40             <span>XX&#10;XX</span>
     41         </div>
     42         <div id="div2"></div>
     43     </body>
     44 </html>