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

Unified Diff: LayoutTests/fast/events/offsetX-offsetY.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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/scrollbars/rtl/div-horizontal-with-vertical-scrollbar.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/offsetX-offsetY.html
diff --git a/LayoutTests/fast/events/offsetX-offsetY.html b/LayoutTests/fast/events/offsetX-offsetY.html
index 886b35fad181a26863dd5ad79f783f609113f3c9..06abfdbeeb050b146af190cfd54401031167e48c 100644
--- a/LayoutTests/fast/events/offsetX-offsetY.html
+++ b/LayoutTests/fast/events/offsetX-offsetY.html
@@ -77,7 +77,9 @@
positions = sumPositions(content);
var inside = document.getElementById('inside-overflow');
var overflow = document.getElementById('overflow');
- clientX = positions.offsetLeft + overflow.clientLeft + content.clientWidth - inside.clientWidth - window.scrollX + offsetX;
+ var borderWidth = 2;
+ var scrollbarWidth = overflow.offsetWidth - overflow.clientWidth - 2*borderWidth;
+ clientX = positions.offsetLeft + overflow.clientLeft + content.clientWidth - scrollbarWidth - inside.clientWidth - window.scrollX + offsetX;
dispatchEvent(clientX, clientY, 'inside-overflow', offsetX, offsetY);
offsetX = 11;
« no previous file with comments | « no previous file | LayoutTests/scrollbars/rtl/div-horizontal-with-vertical-scrollbar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698