tor-browser

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

inline-formatting-context-010.xht (1305B)


      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: Line boxes are tall enough for all boxes</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting" />
      7 
      8         <meta name="flags" content="ahem" />
      9         <meta name="assert" content="A line box is always tall enough to contain all the boxes in the line." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             div
     13             {
     14                 height: 25px;
     15                 white-space: pre;
     16             }
     17             span
     18             {
     19                 background: blue;
     20                 font: 50px Ahem;
     21             }
     22             #span1
     23             {
     24                 line-height: 50px;
     25             }
     26             #span2
     27             {
     28                 line-height: 10px;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if the black squares and blue rectangles have the same height.</p>
     34         <div>
     35             <span id="span1"> X </span><span id="span2"> X </span>
     36         </div>
     37     </body>
     38 </html>