tor-browser

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

vertical-align-baseline-003.xht (1517B)


      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 'inline-block' and baseline alignment</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-003-ref.xht" />
     10 
     11         <meta name="assert" content="The 'vertical-align' property aligns the last line box of 'inline-block' elements with the baseline." />
     12         <style type="text/css">
     13             #span1
     14             {
     15                 font-size: 16px;
     16             }
     17             #span2
     18             {
     19                 background: orange;
     20                 display: inline-block;
     21                 width: 5em;
     22             }
     23         </style>
     24     </head>
     25     <body>
     26         <p>Test passes if the last line of "Filler Text" inside the orange rectangle is on the same line as the arrows "--&gt;" "&lt;--".</p>
     27         <div>
     28             <span id="span1">--&gt; <span id="span2">Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text</span> &lt;--</span>
     29         </div>
     30     </body>
     31 </html>