https://github.com/mozilla/gecko-dev
Raw File
Tip revision: e3a2113d8ccd1bb11ae2f7f3c7163ad271d0064b authored by Joel Maher on 08 June 2024, 11:33:29 UTC
Bug 1901251 - Adjust moz-icon-blank reftest expectations for new graphics card on windows. r=tnikkel, a=test-only DONTBUILD
Tip revision: e3a2113
562169-4.html
<!DOCTYPE html>
<html>
 <head>
  <meta charset="UTF-8">
  <title>dir() selector</title>
  <style>
   :dir(ltr) { color: blue }
   :dir(rtl) { color: lime }
   div { text-align: left; }
  </style>
  <script type="text/javascript">
function AppendElementWithChild() {
    var x = document.createElement("span");
    x.innerHTML = "This span should inherit rtl from the parent. ";

    var y = document.createElement("span");
    y.innerHTML = "This span should inherit rtl from the grandparent.";

    var z = document.getElementById("z");

    x.appendChild(y);
    z.appendChild(x);
}
  </script>
 </head>
 <body onload="AppendElementWithChild()">
  <div id="z" dir="rtl">This element is rtl. </div>
 </body>
</html>
back to top