tor-browser

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

text-align-vlr-019.xht (1349B)


      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: right' - 'vertical-lr' and initial, default 'direction'</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="direction-vlr-003-ref.xht" />
     12 
     13   <meta content="ahem image" name="flags" />
     14   <meta content="This test checks that 'text-align: right' aligns an inline box within a line box with respect to such line box's logical right side (line-right side)." 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/left-bottom-200x300.png");
     29       text-align: right;
     30       writing-mode: vertical-lr;
     31     }
     32   ]]></style>
     33  </head>
     34 
     35  <body>
     36 
     37   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     38 
     39   <div>B</div>
     40 
     41  </body>
     42 </html>