tor-browser

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

white-space-processing-006.xht (1656B)


      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 'nowrap' with carriage return adjoining linefeed</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         <meta name="flags" content="ahem may" />
      8         <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-processing"/>
      9         <link rel="match" href="white-space-processing-006-ref.xht" />
     10         <meta name="assert" content="A carriage return before a linefeed is removed if 'white-space' is set to 'nowrap'. The linefeed may be rendered as a space or not rendered. Under css-text-3 rules, this is scriter, and 1 space is expected" />
     11         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12         <style type="text/css">
     13             div
     14             {
     15                 font-family: Ahem;
     16                 height: 1em;
     17                 margin-bottom: 3px;
     18                 width: 4em;
     19             }
     20             #div1
     21             {
     22                 background: black;
     23                 white-space: nowrap;
     24             }
     25             #div2
     26             {
     27                 background-color: blue;
     28             }
     29         </style>
     30     </head>
     31     <body>
     32         <p>Test passes if the black box below is the same width, or shorter, than the blue box. Its okay if the black box has a small notch in it.</p>
     33         <div id="div1">XX&#13;&#10;X</div>
     34         <div id="div2"></div>
     35     </body>
     36 </html>