forked from mirrors/gecko-dev
Backed out changeset de233af59c21 (bug 1822433) for wpt failures on scroll-snap-type-on-root-element.html.
This commit is contained in:
parent
b1bb1b3c9b
commit
3cfa044456
2 changed files with 16 additions and 12 deletions
|
|
@ -124,17 +124,9 @@ CalcSnapPoints::CalcSnapPoints(ScrollUnit aUnit, ScrollSnapFlags aSnapFlags,
|
||||||
|
|
||||||
SnapTarget CalcSnapPoints::GetBestEdge() const {
|
SnapTarget CalcSnapPoints::GetBestEdge() const {
|
||||||
return SnapTarget{
|
return SnapTarget{
|
||||||
nsPoint(
|
nsPoint(mTrackerOnX.mEdgeFound ? mTrackerOnX.mBestEdge.mPosition
|
||||||
mTrackerOnX.mEdgeFound ? mTrackerOnX.mBestEdge.mPosition
|
|
||||||
// In the case of IntendedEndPosition (i.e. the destination point is
|
|
||||||
// explicitely specied, e.g. scrollTo) use the destination point if we
|
|
||||||
// didn't find any candidates.
|
|
||||||
: !(mSnapFlags & ScrollSnapFlags::IntendedDirection) ? mDestination.x
|
|
||||||
: mStartPos.x,
|
: mStartPos.x,
|
||||||
mTrackerOnY.mEdgeFound ? mTrackerOnY.mBestEdge.mPosition
|
mTrackerOnY.mEdgeFound ? mTrackerOnY.mBestEdge.mPosition
|
||||||
// Same as above X axis case, use the destination point if we didn't
|
|
||||||
// find any candidates.
|
|
||||||
: !(mSnapFlags & ScrollSnapFlags::IntendedDirection) ? mDestination.y
|
|
||||||
: mStartPos.y),
|
: mStartPos.y),
|
||||||
ScrollSnapTargetIds{mTrackerOnX.mTargetIds, mTrackerOnY.mTargetIds}};
|
ScrollSnapTargetIds{mTrackerOnX.mTargetIds, mTrackerOnY.mTargetIds}};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
[scroll-snap-type-on-root-element.html]
|
||||||
|
expected:
|
||||||
|
if (os == "android") and fission: [OK, TIMEOUT]
|
||||||
|
[The scroll-snap-type on the root element is applied]
|
||||||
|
expected:
|
||||||
|
if os == "android": FAIL
|
||||||
|
|
||||||
|
[The writing-mode (vertical-lr) on the body is used]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[The writing-mode (horizontal-tb) on the body is used ]
|
||||||
|
expected: FAIL
|
||||||
Loading…
Reference in a new issue