tor-browser

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

vertical-align-baseline-002.xht (1604B)


      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: Vertical-align set to '0' is equal to 'baseline'</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-03-03 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align" />
      8         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" />
      9         <link rel="match" href="vertical-align-baseline-001-ref.xht" />
     10 
     11         <meta name="flags" content="ahem" />
     12         <meta name="assert" content="The 'vertical-align' property set to '0' means the same as the 'baseline'." />
     13         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14         <style type="text/css">
     15             div
     16             {
     17                 border-bottom: solid orange;
     18                 color: blue;
     19                 font: 100px/1 Ahem;
     20                 height: 100px;
     21             }
     22             #span1
     23             {
     24                 vertical-align: 0%;
     25             }
     26             #span2
     27             {
     28                 vertical-align: baseline;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if 2 blue squares are touching but not overlapping the orange line.</p>
     34         <div>
     35             <span id="span1">X</span>
     36             <span id="span2">X</span>
     37         </div>
     38     </body>
     39 </html>