Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: LayoutTests/scrollbars/rtl/div-horizontal-with-vertical-scrollbar.html

Issue 70163005: Fix clientLeft value for RTL direction, while the element have vertical scrollbar in left side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698