OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body dir="ltr"> | 6 <body dir="ltr"> |
7 <div dir="ltr" id="outer-ltr" style="width: 200px; height: 200px; overflow: auto
;"> | 7 <div dir="ltr" id="outer-ltr" style="width: 200px; height: 200px; overflow: auto
;"> |
8 <div id="inner-ltr" style="text-align: left; width: 195px; height: 300px;">ABC</
div> | 8 <div id="inner-ltr" style="text-align: left; width: 195px; height: 300px;">ABC</
div> |
9 </div> | 9 </div> |
10 <div dir="rtl" id="outer-rtl" style="width: 200px; height: 200px; overflow: auto
;"> | 10 <div dir="rtl" id="outer-rtl" style="width: 200px; height: 200px; overflow: auto
;"> |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 debug('Verify the widths of the inner RTL elements are the same as the widths of
the inner LTR elements.'); | 28 debug('Verify the widths of the inner RTL elements are the same as the widths of
the inner LTR elements.'); |
29 shouldBeTrue('innerLTR.offsetWidth == innerRTL.offsetWidth'); | 29 shouldBeTrue('innerLTR.offsetWidth == innerRTL.offsetWidth'); |
30 shouldBeTrue('innerLTR.clientWidth == innerRTL.clientWidth'); | 30 shouldBeTrue('innerLTR.clientWidth == innerRTL.clientWidth'); |
31 shouldBeTrue('innerLTR.scrollWidth == innerRTL.scrollWidth'); | 31 shouldBeTrue('innerLTR.scrollWidth == innerRTL.scrollWidth'); |
32 | 32 |
33 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.'); | 33 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 var scrollbarWidthLTR = outerLTR.offsetWidth - outerLTR.clientWidth; | 34 var scrollbarWidthLTR = outerLTR.offsetWidth - outerLTR.clientWidth; |
35 var scrollbarWidthRTL = outerRTL.offsetWidth - outerRTL.clientWidth; | 35 var scrollbarWidthRTL = outerRTL.offsetWidth - outerRTL.clientWidth; |
36 shouldBeTrue('scrollbarWidthLTR == scrollbarWidthRTL'); | 36 shouldBeTrue('scrollbarWidthLTR == scrollbarWidthRTL'); |
| 37 shouldBeTrue('outerRTL.clientLeft == scrollbarWidthRTL'); |
37 </script> | 38 </script> |
38 </body> | 39 </body> |
39 </html> | 40 </html> |
OLD | NEW |