layout/reftests/bidi/712600-1.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE html>
     2 <html><head>
     3 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     4     <meta charset="utf-8">
     5     <title>HTML Test: BDI: neutral to surrounding letters</title>
     6     <link rel="reference" href="https://bug712600.bugzilla.mozilla.org/bdi-neutral-to-surrounding-run-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="http://dev.w3.org/html5/spec/Overview.html#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.'
    15       Thus, regardless of its content and its dir attribute (if any), a BDI will not prevent
    16       a strongly RTL (or LTR) character preceding it from forming a single directional run with
    17       another strongly RTL (LTR) character following it.">
    18     <style>
    19       body{
    20         font-size:2em;
    21       }
    22     </style>
    23   </head>
    24   <body>
    25     <!-- Key to entities used below:
    26       &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
    27       &#x202D; - The LRO (left-to-right-override) formatting character.
    28       &#x202C; - The PDF (pop directional formatting) formatting character; closes LRO. -->
    30       <!--
    31         If the BDI in the following DIV were a SPAN, its b would prevent the &#x05D0; and the &#x05D1;
    32         from forming a single RTL run and thus keep the &gt;s between from being mirrored into &lt;s.
    33       -->
    34       <div dir="ltr">א &gt; <bdi>[b]</bdi> &gt; ג...</div>
    35       <div dir="ltr">א &gt; <bdi dir="ltr">[b]</bdi> &gt; ג...</div>
    36       <div dir="ltr">א &gt; <bdi dir="rtl">[b]</bdi> &gt; ג...</div>
    37       <div dir="rtl">a &gt; <bdi>[ב]</bdi> &gt; c...</div>
    38       <div dir="rtl">a &gt; <bdi dir="ltr">[ב]</bdi> &gt; c...</div>
    39       <div dir="rtl">a &gt; <bdi dir="rtl">[ב]</bdi> &gt; c...</div>
    42 </body></html>

mercurial