forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1552089 - Don't tweak snapport position even in the case of RTL s…
…croll containers. r=botond In RTL scroll containers, the right most x-axis scroll position is 0 and leftward scroll positions are negative values. And also nsLayoutUtils::TransformFrameRectToAncestor, which is used to tell whether the snap target element is inside the destination snapport or not [1], returns negative x-axis positions for elements in RTL scroll containers if the element is positioned at places where the elements are outside of the initial scroll position (0, 0). So we don't need to tweak snapport postion even in the case of RTL scroll containers. Instead, what we needed in the first place is that we choose a proper x-axis scroll position that the targe element appears inside the snapport. [1] https://searchfox.org/mozilla-central/rev/11cfa0462a6b5d8c5e2111b8cfddcf78098f0141/layout/generic/nsGfxScrollFrame.cpp#6604-6605,6616-6617 Depends on D31409 Differential Revision: https://phabricator.services.mozilla.com/D31410 --HG-- extra : moz-landing-system : lando
- Loading branch information
Hiroyuki Ikezoe
committed
May 17, 2019
1 parent
f2920c1
commit ba8e59a
Showing
3 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
testing/web-platform/meta/css/css-scroll-snap/scroll-snap-type-on-root-element.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters