tor-browser

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

562169-3a.html (592B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="UTF-8">
      5  <title>dir() selector</title>
      6  <style>
      7   :not(: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>