tor-browser

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

bdi-neutral-missing-pdf.html (2729B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8"/>
      5    <title>HTML Test: BDI: neutral when contains LRO or RLO without PDF</title>
      6    <link rel="match" href="bdi-neutral-missing-pdf-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-bdi-element"/>
     10    <meta name="assert" content="
     11      'For the purposes of applying the bidirectional algorithm to the paragraph-level
     12      container that a bdi element finds itself within, the bdi element must be treated
     13      like a U+FFFC OBJECT REPLACEMENT CHARACTER.'
     14      Thus, if a BDI contains LRO or RLO characters lacking a matching PDF, these must not affect
     15      the visual ordering of the content outside the BDI."/>
     16    <style>
     17      body{
     18        font-size:2em;
     19      }
     20      .test, .ref {
     21        border: medium solid gray;
     22        width: 400px;
     23        margin: 20px;
     24      }
     25      .comments { display: none; }
     26    </style>
     27  </head>
     28  <body>
     29    <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
     30    <div class="comments">
     31      Key to entities used below:
     32        &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
     33        &#x202D; - The LRO (left-to-right override) formatting character.
     34        &#x202E; - the RLO (right-to-left-override) formatting character.
     35        &#x202C; - The PDF (pop directional formatting) formatting character; closes LRO and RLO.
     36      If the BDI in the test's first DIV were a SPAN, the RLO it contains, not being closed by a
     37      PDF, would visually reorder the de into ed.
     38    </div>
     39    <div class="test">
     40      <div dir="ltr"><bdi>&#x05D0;&#x202E;bc</bdi>de...</div>
     41      <div dir="ltr"><bdi dir="ltr">&#x05D0;&#x202E;bc</bdi>de...</div>
     42      <div dir="ltr"><bdi dir="rtl">&#x05D0;&#x202E;bc</bdi>de...</div>
     43      <div dir="rtl"><bdi>a&#x202D;&#x05D1;&#x05D2;</bdi>&#x05D3;&#x05D4;...</div>
     44      <div dir="rtl"><bdi dir="ltr">a&#x202D;&#x05D1;&#x05D2;</bdi>&#x05D3;&#x05D4;...</div>
     45      <div dir="rtl"><bdi dir="rtl">a&#x202D;&#x05D1;&#x05D2;</bdi>&#x05D3;&#x05D4;...</div>
     46    </div>
     47    <div class="ref">
     48      <div dir="ltr">&#x202D;cb&#x05D0;de...&#x202C;</div>
     49      <div dir="ltr">&#x202D;cb&#x05D0;de...&#x202C;</div>
     50      <div dir="ltr">&#x202D;cb&#x05D0;de...&#x202C;</div>
     51      <div dir="rtl">&#x202D;...&#x05D4;&#x05D3;a&#x05D1;&#x05D2;&#x202C;</div>
     52      <div dir="rtl">&#x202D;...&#x05D4;&#x05D3;a&#x05D1;&#x05D2;&#x202C;</div>
     53      <div dir="rtl">&#x202D;...&#x05D4;&#x05D3;a&#x05D1;&#x05D2;&#x202C;</div>
     54    </div>
     55  </body>
     56 </html>