tor-browser

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

baseline-inline-non-replaced-002.xht (1425B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Writing Modes Test: baseline-alignment of empty non-replaced inline-block element and 'vertical-rl'</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#replaced-baselines" title="4.3 Atomic Inline Baselines" />
     11   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
     12 
     13   <meta content="ahem" name="flags" />
     14   <meta content="This test checks that the baseline-alignment of an empty inline-block box in the line box with 'writing-mode' set to 'vertical-rl' is 'central' and not 'alphabetic'." name="assert" />
     15 
     16   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     17   <style type="text/css"><![CDATA[
     18   div
     19     {
     20       background-color: red;
     21       color: green;
     22       font: 50px/1 Ahem; /* computes to 50px/50px */
     23       height: 2em; /* computes to 100px */
     24       writing-mode: vertical-rl;
     25     }
     26 
     27   span
     28     {
     29       border-right: green solid 1em;
     30       display: inline-block;
     31       height: 2em;
     32     }
     33   ]]></style>
     34  </head>
     35 
     36  <body>
     37 
     38   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     39 
     40   <div>
     41     <span></span>
     42     TL
     43   </div>
     44 
     45  </body>
     46 </html>