tor-browser

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

vertical-align-115.xht (1704B)


      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 with a keyword, 'sub'</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" />
      8         <meta name="flags" content="ahem" />
      9         <meta name="assert" content="The 'vertical-align' property sets the keyword 'sub'." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             div
     13             {
     14                 font: 48px/1em Ahem;
     15                 position: relative;
     16             }
     17             #div3
     18             {
     19                 border-top: 2px solid blue;
     20                 height: 48px;
     21                 position: absolute;
     22                 top: 38px;
     23                 width: 48px;
     24                 z-index: 1;
     25             }
     26             #span1
     27             {
     28                 color: orange;
     29                 vertical-align: sub;
     30             }
     31             #span2
     32             {
     33                 color: white;
     34                 font: 96px/1em Ahem;
     35             }
     36         </style>
     37     </head>
     38     <body>
     39         <p>Test passes if there is vertical white space between the bottom of the blue line and the top of the orange square.</p>
     40         <div id="div1">
     41             <div id="div2">
     42                 <span id="span1">X</span><span id="span2">X</span>
     43             </div>
     44             <div id="div3"></div>
     45         </div>
     46     </body>
     47 </html>