tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / dom / HTMLElement / attr-dir-auto-children.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <script src="../../js/resources/js-test-pre.js"></script>
6 <style>
7 .testDiv {-webkit-border-start: 5px solid green; -webkit-border-end: 5px solid red; }
8 </style>
9 </head>
10 <body>
11 <p id="description"></p>
12 <div id="console"></div>
13 <div id="result"></div>
14 <div id="parentDiv">
15 <div id="has-dir-auto" dir="auto" class="testDiv">
16 <div id="has-dir-rtl" dir="rtl" class="testDiv">מקור השם עברית</div>
17 Test test test</div>
18
19 <script>
20
21 description('Test that directionality of an element with dir=auto is not affected by children that also have the dir attribute.');
22
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";
28 </script>
29 <script src="../../js/resources/js-test-post.js"></script>
30 </body>
31 </html>