tor-browser

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

vertical-align-baseline-005.xht (1587B)


      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 applied to an 'inline-block' with 'overflow' not set to 'visible' and baseline alignment</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 aligns an 'inline-block' elements' bottom margin edge with the baseline when 'overflow' is not set to 'visible'." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css">
     12             div
     13             {
     14                 font: 20px/1em Ahem;
     15             }
     16             #span1
     17             {
     18                 background: blue;
     19                 color: blue;
     20             }
     21             #span2
     22             {
     23                 color: orange;
     24                 display: inline-block;
     25                 margin-bottom: 1em;
     26                 height: 4em;
     27                 overflow: hidden;
     28                 width: 5em;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if the orange box below is above the blue box.</p>
     34         <div>
     35             <span id="span1">X<span id="span2">XXXXX XXXXX XXXXX XXXXX XXXXX</span>X</span>
     36         </div>
     37     </body>
     38 </html>