layout/reftests/bidi/562169-3a.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     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