tor-browser

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

white-space-processing-049.xht (1624B)


      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: Floats and line-breaking opportunities with 'white-space'</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-08-11 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model" />
      8         <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-encoding"/>
      9         <link rel="match" href="white-space-processing-049-ref.xht" />
     10 
     11         <meta name="flags" content="ahem" />
     12         <meta name="assert" content="A line breaking opportunity is not introduced with an absolutely positioned element." />
     13         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14         <style type="text/css">
     15             #div1
     16             {
     17                 color: orange;
     18                 font: 1.25em/1 Ahem;
     19                 position: relative;
     20                 white-space: normal;
     21                 width: 5em;
     22             }
     23             div div
     24             {
     25                 color: blue;
     26                 position: absolute;
     27                 right:0;
     28                 top:0;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if there is an orange sliver on the left and right of a short blue stripe.</p>
     34         <div id="div1">
     35             <span>XXX<div>XXX</div>XXXX</span>
     36         </div>
     37     </body>
     38 </html>