tor-browser

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

text-align-vrl-010.xht (1390B)


      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: 'text-align: center' - 'vertical-rl' and 'direction: rtl'</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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
     11   <link rel="match" href="text-align-vrl-008-ref.xht" />
     12 
     13   <meta content="ahem image" name="flags" />
     14   <meta content="This test checks that 'text-align: center' centers an inline box within a line box with respect to the line box's logical left and right sides (line-left and line-right sides)." name="assert" />
     15 
     16   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     17   <style type="text/css"><![CDATA[
     18   div
     19     {
     20       color: green;
     21       font: 100px/1 Ahem; /* computes to 100px/100px */
     22       height: 300px;
     23       width: 200px;
     24     }
     25 
     26   div
     27     {
     28       background: red url("support/right-center-200x300.png");
     29       direction: rtl;
     30       text-align: center;
     31       writing-mode: vertical-rl;
     32     }
     33 
     34   ]]></style>
     35  </head>
     36 
     37  <body>
     38 
     39   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     40 
     41   <div>C</div>
     42 
     43  </body>
     44 </html>