Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / international / dir-auto-child-dir-changed.html
blobfb998e5b4baeba27447ff29509a0ef3ea657769d
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <div dir="auto" id="container">
5 <span id="inner">&#x680;</span>
6 ABC DEF GHI JKL
7 </div>
8 <script>
9 test(function () {
10 assert_equals(window.getComputedStyle(container).getPropertyValue("direction"), "rtl");
11 }, "dir=auto should pick the first character in the first span");
12 inner.dir = "rtl";
13 test(function () {
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";
18 </script>