tor-browser

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

dir-isolation-006b.html (1589B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4 <meta charset="utf-8">
      5 <title>The dir attribute: isolated from following text with intervening neutrals, auto</title>
      6 <link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
      7 <link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
      8 <link rel='match' href='reference/dir-isolation-006-ref.html'>
      9 <meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.'>
     10 <style type="text/css">
     11 .test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
     12 input { margin: 5px; }
     13 </style>
     14 </head>
     15 <body>
     16 <p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
     17 <!--Notes:
     18 Key to entities used below:
     19 &#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
     20 &#x202d; - The LRO (left-to-right-override) formatting character.
     21 &#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
     22 The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
     23 -->
     24 <div class="test">
     25 <div dir="ltr"><span dir="auto">&gt; &#x5d0; &gt;</span> &gt; &#x5d1; &gt;...</div>
     26 <div dir="rtl"><span dir="auto">&gt; a &gt;</span> &gt; b &gt;...</div>
     27 </div>
     28 <div class="ref">
     29 <div dir="ltr">&#x202d;&lt; &#x5d0; &lt; &gt; &#x5d1; &gt;...&#x202c;</div>
     30 <div dir="rtl">&#x202d;...&lt; b &lt; &gt; a &gt;&#x202c;</div>
     31 </div>
     32 </body></html>