OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Bug 85856</title> | 4 <title>Bug 85856</title> |
5 <script src="../../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../../fast/js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body dir="ltr"> | 7 <body dir="ltr"> |
8 <div dir="ltr" id="outer-ltr" style="width: 200px; height: 200px; overflow: scro
ll;"> | 8 <div dir="ltr" id="outer-ltr" style="width: 200px; height: 200px; overflow: scro
ll;"> |
9 <div id="inner-ltr" style="text-align: left; width: 300px; height: 300px;">ABC</
div> | 9 <div id="inner-ltr" style="text-align: left; width: 300px; height: 300px;">ABC</
div> |
10 </div> | 10 </div> |
(...skipping 18 matching lines...) Expand all Loading... |
29 debug('Verify the widths of the inner RTL elements are the same as the widths of
the inner LTR elements.'); | 29 debug('Verify the widths of the inner RTL elements are the same as the widths of
the inner LTR elements.'); |
30 shouldBeTrue('innerLTR.offsetWidth == innerRTL.offsetWidth'); | 30 shouldBeTrue('innerLTR.offsetWidth == innerRTL.offsetWidth'); |
31 shouldBeTrue('innerLTR.clientWidth == innerRTL.clientWidth'); | 31 shouldBeTrue('innerLTR.clientWidth == innerRTL.clientWidth'); |
32 shouldBeTrue('innerLTR.scrollWidth == innerRTL.scrollWidth'); | 32 shouldBeTrue('innerLTR.scrollWidth == innerRTL.scrollWidth'); |
33 | 33 |
34 debug('Verify the width of the vertical scrollbar of the outer RTL element is th
e same as the one of the outer LTR element regardless of their scrollbar positio
ns.'); | 34 debug('Verify the width of the vertical scrollbar of the outer RTL element is th
e same as the one of the outer LTR element regardless of their scrollbar positio
ns.'); |
35 var scrollbarWidthLTR = outerLTR.offsetWidth - outerLTR.clientWidth; | 35 var scrollbarWidthLTR = outerLTR.offsetWidth - outerLTR.clientWidth; |
36 var scrollbarWidthRTL = outerRTL.offsetWidth - outerRTL.clientWidth; | 36 var scrollbarWidthRTL = outerRTL.offsetWidth - outerRTL.clientWidth; |
37 shouldBeTrue('scrollbarWidthLTR == scrollbarWidthRTL'); | 37 shouldBeTrue('scrollbarWidthLTR == scrollbarWidthRTL'); |
38 </script> | 38 </script> |
39 <script src="../../fast/js/resources/js-test-post.js"></script> | |
40 </body> | 39 </body> |
41 </html> | 40 </html> |
OLD | NEW |