tor-browser

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

block-flow-direction-slr-054.xht (2928B)


      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: inline-block and 'sideways-lr' - block flow direction of block-level boxes</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-4/#writing-mode" title="3.1 Block Flow Direction: the writing-mode property" />
     11   <link rel="match" href="block-flow-direction-001-ref.xht" />
     12 
     13   <meta content="ahem" name="flags" />
     14   <meta content="This test checks that an inline-block with its 'writing-mode' set to 'sideways-lr' establishes a block formating context with a left-to-right block flow direction." name="assert" />
     15 
     16   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     17   <style type="text/css"><![CDATA[
     18   body
     19     {
     20       color: yellow;
     21       font: 20px/1 Ahem;
     22     }
     23 
     24   div#inline-block
     25     {
     26       background-color: blue;
     27       border-bottom: blue solid 1em;
     28       display: inline-block;
     29       height: 8em;
     30       vertical-align: top;
     31   /*
     32   Why 'vertical-align: top' ?
     33   See
     34   http://lists.w3.org/Archives/Public/public-css-testsuite/2014Dec/0013.html
     35   for explanations
     36   */
     37       writing-mode: sideways-lr;
     38     }
     39 
     40   span
     41     {
     42       display: block;
     43     }
     44 
     45   span.left-border
     46     {
     47       border-left: blue solid 1em;
     48     }
     49 
     50   span#right-border
     51     {
     52     border-right: blue solid 1em;
     53     }
     54   ]]></style>
     55  </head>
     56 
     57  <body>
     58 
     59   <div>
     60 
     61     <div id="inline-block">
     62 
     63 <!-- The 1st left-most line of "P" --> <span class="left-border">AAAAAAA</span>
     64 
     65 <!-- The 2nd left-most line of "P" --> <span>&nbsp;&nbsp; B &nbsp;C</span>
     66 
     67 <!-- The 3rd left-most line of "P" --> <span>&nbsp;&nbsp; D &nbsp;E</span>
     68 
     69 <!-- The 4th left-most line of "P" --> <span>&nbsp;&nbsp; FFFF</span>
     70 
     71 
     72 
     73 <!-- The left-most line of "A" --> <span class="left-border">GGGGGGG</span>
     74 
     75 <!-- The 2nd left-most line of "A" --> <span>&nbsp;&nbsp; H &nbsp;J</span>
     76 
     77 <!-- The 3rd left-most line of "A" --> <span>&nbsp;&nbsp; K &nbsp;L</span>
     78 
     79 <!-- The 4th left-most line of "A" --> <span>MMMMMMM</span>
     80 
     81 
     82 
     83 <!-- The 1st left-most line of left-most "S" --> <span class="left-border">N&nbsp; QQQQ</span>
     84 
     85 <!-- The 2nd left-most line of left-most "S" --> <span>R&nbsp; S&nbsp; T</span>
     86 
     87 <!-- The 3rd left-most line of left-most "S" --> <span>U&nbsp; V&nbsp; W</span>
     88 
     89 <!-- The 4th left-most line of left-most "S" --> <span>XXXX &nbsp;Y</span>
     90 
     91 
     92 
     93 <!-- The left-most line of right-most "S" --> <span class="left-border">a&nbsp; bbbb</span>
     94 
     95 <!-- The 2nd left-most line of right-most "S" --> <span>c&nbsp; d&nbsp; e</span>
     96 
     97 <!-- The 3rd left-most line of right-most "S" --> <span>f&nbsp; g&nbsp; h</span>
     98 
     99 <!-- The 4th left-most line of right-most "S" --> <span id="right-border">jjjj &nbsp;k</span>
    100 
    101     </div>
    102 
    103   </div>
    104 
    105  </body>
    106 </html>