1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bidi/562169-3a.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <meta charset="UTF-8"> 1.8 + <title>dir() selector</title> 1.9 + <style> 1.10 + :not(:-moz-dir(rtl)) + div { color: blue } 1.11 + div { color: lime; text-align: left; } 1.12 + </style> 1.13 + <script type="text/javascript"> 1.14 +function switchDir() 1.15 +{ 1.16 + theDiv = document.getElementById("d"); 1.17 + if (theDiv.dir == "ltr") { 1.18 + theDiv.dir = "rtl"; 1.19 + } else if (theDiv.dir == "rtl") { 1.20 + theDiv.dir = "ltr"; 1.21 + } 1.22 +} 1.23 + </script> 1.24 + </head> 1.25 + <body onload="switchDir()"> 1.26 + <div id="d" dir="ltr">This element is rtl.</div> 1.27 + <div>This element has default direction.</div> 1.28 + </body> 1.29 +</html>