Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Attr / direction-attribute-set-and-cleared.html
blobcc5961f112ce26c1fb33db8aa52d6a2809ec5a9c
1 <!doctype html>
2 <html>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 if (window.testRunner)
6 testRunner.waitUntilDone();
7 description('This tests that setting the dir attribute to rtl and clearing it defaults to ltr.');
8 onload = function() {
9 document.body.dir = 'rtl';
10 document.body.offsetTop;
11 document.body.dir = '';
12 shouldBeEqualToString('window.getComputedStyle(document.body).direction', 'ltr');
13 if (window.testRunner)
14 testRunner.notifyDone();
16 </script>
17 <body>