4 <title>Bug
91756</title>
5 <script src=
"../../resources/js-test.js"></script>
7 div.outer { overflow: auto; width:
100px; position: relative; height:
100px; border: solid; }
8 div.inner { position: absolute; top:
250px; }
12 <div id=
"outerLTR" class=
"outer"><div id=
"innerLTR" class=
"inner" style=
"left: 200px;">foo
</div></div>
13 <div id=
"outerRTL" class=
"outer" style=
"direction: rtl;"><div id=
"innerRTL" class=
"inner" style=
"right: 200px;">foo
</div>
15 <script type=
"text/javascript">
16 description('Test if the widths of RTL elements are the same as the widths of the LTR elements when they include absolutely-positioned children.');
18 debug('Verify the widths of the outer RTL element are the same as the widths of the outer LTR element.');
19 var outerLTR
= document
.getElementById('outerLTR');
20 var outerRTL
= document
.getElementById('outerRTL');
21 shouldBeTrue('outerLTR.offsetWidth == outerRTL.offsetWidth');
22 shouldBeTrue('outerLTR.clientWidth == outerRTL.clientWidth');
23 shouldBeTrue('outerLTR.scrollWidth == outerRTL.scrollWidth');
25 debug('Verify the widths of the inner RTL element are the same as the widths of the inner LTR element.');
26 var innerLTR
= document
.getElementById('innerLTR');
27 var innerRTL
= document
.getElementById('innerRTL');
28 shouldBeTrue('innerLTR.offsetWidth == innerRTL.offsetWidth');
29 shouldBeTrue('innerLTR.clientWidth == innerRTL.clientWidth');
30 shouldBeTrue('innerLTR.scrollWidth == innerRTL.scrollWidth');