tor-browser

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

dir-selector-change-003.html (745B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <title>CSS Selectors Level 4 Test: Check for correctly updating :dir matching on dir attribute change from rtl to auto</title>
      5    <link rel="author" title="Miyoung Shin" href="mailto:myid.shin@igalia.com">
      6    <link rel="help" href="http://www.w3.org/TR/selectors4/#dir-pseudo">
      7    <link rel="match" href="dir-selector-change-003-ref.html">
      8    <style>
      9        #x:dir(ltr) + span { background-color: lime }
     10    </style>
     11 </head>
     12 <body>
     13    <div id="outer" dir="rtl">
     14        <div>
     15            <div id="x"></div>
     16            <span>The background color should be lime</span>
     17        </div>
     18    </div>
     19    <script>
     20        outer.offsetTop;
     21        outer.setAttribute("dir", "auto");
     22    </script>
     23 </body>
     24 </html>