tor-browser

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

bidi-003.xht (2390B)


      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" lang="en">
      3  <head>
      4 
      5   <title>CSS Test: RLO/PDF bidi reordering across closing inline element boundary + opening inline boundary</title>
      6   <meta name="assert"
      7         content="Tests that RLO + closing inline element boundary + opening inline element boundary + PDF
      8                  reorders text, splitting inlines and rendering their borders and padding appropriately."/>
      9   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
     10   <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
     11   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/bidi/003.html" type="text/html"/>
     12 
     13   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#bidi-box-model"/>
     14   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#bidi-control-codes"/>
     15 
     16   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/>
     17   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction"/>
     18   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model"/>
     19   <link rel="help" href="http://unicode.org/reports/tr9/"/>
     20 
     21   <link rel="match" href="bidi-003-ref.xht" />
     22 
     23   <style type="text/css">
     24    div p { white-space: nowrap; border: solid; margin: 1em; padding: 0.5em; background: #FFFFCC; color: black; }
     25    .test { border: solid; padding: 0.4em 1em; line-height: 3em; }
     26    .control { line-height: 3em; }
     27    .control.start { border-style: solid none solid solid; padding: 0.4em 0 0.4em 1em;  }
     28    .control.end { border-style: solid solid solid none; padding: 0.4em 1em 0.4em 0;  }
     29    .a { color: navy; }
     30    .b { color: orange; }
     31   </style>
     32  </head>
     33  <body>
     34   <p> The following two blocks should be identical, including overflow. (Force bidi: &#x05D0;) </p>
     35   <div>
     36    <p>
     37     <span class="control a start"> aaa bbb ccc </span>
     38     <span class="control b start"> ddd eee fff </span>
     39                                    ggg hhh iii
     40     <span class="control a end">   jjj kkk lll </span>
     41     <span class="control b end">   mmm nnn ooo </span>
     42    </p>
     43    <p>
     44     <span class="test a"> aaa bbb ccc &#x202E; lll kkk jjj </span> iii hhh ggg <span class="test b"> fff eee ddd &#x202C; mmm nnn ooo </span>
     45    </p>
     46   </div>
     47  </body>
     48 </html>