layout/reftests/bidi/562169-2a.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>
     3  <head>
     4   <meta charset="UTF-8">
     5   <title>dir() selector</title>
     6   <style>
     7    :-moz-dir(ltr) { color: blue }
     8    :-moz-dir(rtl) { color: lime }
     9    :-moz-dir(foopy) { color: red }
    10    div { text-align: left; }
    11   </style>
    12   <script type="text/javascript">
    13 function switchDir()
    14 {
    15     document.dir = "rtl";
    16 }
    17   </script>
    18  </head>
    19  <body onload="switchDir()">
    20   <div>This element has default direction.</div>
    21   <div dir="ltr">This element is ltr.</div>
    22   <div dir="rtl">This element is rtl.</div>
    23   <div dir="ltr">
    24     <div>This element should inherit ltr.</div>
    25     <div dir="ltr">This element is ltr.</div>
    26     <div dir="rtl">This element is rtl.</div>
    27   </div>
    28   <div dir="rtl">
    29     <div>This element should inherit rtl.</div>
    30     <div dir="ltr">This element is ltr.</div>
    31     <div dir="rtl">This element is rtl.</div>
    32   </div>
    33   <div dir="foopy">This element has an invalid dir attribute and
    34     should have default direction.</div>
    35  </body>
    36 </html>

mercurial