tor-browser

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

dir_auto-pre-mixed.html (2238B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8" />
      5    <title>HTML Test: pre with dir=auto, mixed L and R paragraphs</title>
      6    <link rel="match" href="dir_auto-pre-mixed-ref.html" />
      7    <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com" />
      8    <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
      9    <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-dir-attribute" />
     10    <link rel="help" href="http://dev.w3.org/csswg/css3-writing-modes/#unicode-bidi0" />
     11    <meta name="assert" content="
     12      When dir='auto', the direction is set according to the first strong character
     13      of the text.
     14      For textarea and pre elements, the heuristic is applied on a per-paragraph level." />
     15    <style>
     16      body {
     17        font-size:18px;
     18        text-align:left;
     19      }
     20      .test, .ref {
     21        border: medium solid gray;
     22        width: 400px;
     23        margin: 20px;
     24      }
     25      .comments {
     26        display: none;
     27      }
     28    </style>
     29  </head>
     30  <body>
     31    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     32    <div class="comments">
     33      Key to entities used below:
     34        &#x200E; - LRM, the invisible left-to-right mark (strongly LTR).
     35        &#x200F; - RLM, the invisible right-to-left mark (strongly RTL).
     36      We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
     37      specification states whether text-align:start and text-align:end should obey the paragraph
     38      direction or the direction property in a unicode-bidi:plaintext element.
     39    </div>
     40    <div class="test">
     41      <div dir="ltr">
     42        <pre dir="auto">
     43 @&#x200E;123&#x200F;!
     44 !&#x200F;123&#x200E;@
     45 @123&#x200E;&#x200F;!
     46 !123&#x200F;&#x200E;@
     47        </pre>
     48      </div>
     49      <div dir="rtl">
     50        <pre dir="auto">
     51 @&#x200E;123&#x200F;!
     52 !&#x200F;123&#x200E;@
     53 @123&#x200E;&#x200F;!
     54 !123&#x200F;&#x200E;@
     55        </pre>
     56      </div>
     57    </div>
     58    <div class="ref">
     59      <div dir="ltr">
     60        <pre dir="ltr">
     61 @123!
     62 @123!
     63 @123!
     64 @123!
     65        </pre>
     66      </div>
     67      <div dir="rtl">
     68        <pre dir="ltr">
     69 @123!
     70 @123!
     71 @123!
     72 @123!
     73        </pre>
     74      </div>
     75    </div>
     76  </body>
     77 </html>