4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <script src="../../js/resources/js-test-pre.js"></script>
7 .testDiv {-webkit-border-start: 5px solid green; -webkit-border-end: 5px solid red; }
11 <p id="description"></p>
12 <div id="console"></div>
13 <div id="result"></div>
15 <div id="has-dir-auto" dir="auto" class="testDiv">
16 <div id="has-dir-rtl" dir="rtl" class="testDiv">מקור השם עברית</div>
21 description('Test that directionality of an element with dir=auto is not affected by children that also have the dir attribute.');
23 var el = document.getElementById("has-dir-auto");
24 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('border-right-color')", "'rgb(255, 0, 0)'");
25 el = document.getElementById("has-dir-rtl");
26 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('border-right-color')", "'rgb(0, 128, 0)'");
27 document.getElementById("parentDiv").style.display = "none";
29 <script src="../../js/resources/js-test-post.js"></script>