2 <script src=
"../../../resources/testharness.js"></script>
3 <script src=
"../../../resources/testharnessreport.js"></script>
4 <div dir=
"auto" id=
"container">
5 <span id=
"inner">ڀ</span>
10 assert_equals(window
.getComputedStyle(container
).getPropertyValue("direction"), "rtl");
11 }, "dir=auto should pick the first character in the first span");
14 assert_equals(window
.getComputedStyle(container
).getPropertyValue("direction"), "ltr");
15 }, "dir=auto should skip span with explicit dir set");
16 if (window
.testRunner
)
17 container
.style
.display
= "none";