layout/reftests/bidi/562169-3a.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    :not(:-moz-dir(rtl)) + div { color: blue }
     8    div { color: lime; text-align: left; }
     9   </style>
    10   <script type="text/javascript">
    11 function switchDir()
    12 {
    13     theDiv = document.getElementById("d");
    14     if (theDiv.dir == "ltr") {
    15         theDiv.dir = "rtl";
    16     } else if (theDiv.dir == "rtl") {
    17         theDiv.dir = "ltr";
    18     }
    19 }
    20   </script>
    21  </head>
    22  <body onload="switchDir()">
    23   <div id="d" dir="ltr">This element is rtl.</div>
    24   <div>This element has default direction.</div>
    25  </body>
    26 </html>

mercurial