Closed Bug 1648494 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 24341 - Implement ScrollTimeline.scrollOffsets API

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 24341 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/24341
Details from upstream follow.

Olga Gerchikov <gerchiko@microsoft.com> wrote:

Implement ScrollTimeline.scrollOffsets API

This change implements initializing ScrollTimeline with scrollOffsets
and reading back scrollOffsets.

Bug: 1094014
Change-Id: I9d39bcc2644cee1288d59a29119d9ac1d91b5080

Reviewed-on: https://chromium-review.googlesource.com/2264926
WPT-Export-Revision: 99cfb21cdc20286eb0d4b17607183cfea50c766e

CI Results

Ran 7 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 43 subtests

Status Summary

Firefox

OK : 1
FAIL: 43

Chrome

OK : 1
FAIL: 43

Safari

OK : 1
FAIL: 43

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/scroll-animations/constructor.tentative.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-qr-debug, Gecko-windows7-32-debug] (Chrome: OK, Safari: OK)
'vh' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'in' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'vmin' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'em' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'ch' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'dpi' is an invalid scroll offset unit in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'px' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
A ScrollTimeline created with empty scrollOffsets should resolve to []: FAIL (Chrome: FAIL, Safari: FAIL)
'ex' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'{"target":{},"threshold":"test"}' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'q' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'{"target":{},"threshold":-0.2}' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'pc' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
Creating a ScrollTimeline with an scrollOffsets value of ['auto'] should throw: FAIL (Chrome: FAIL, Safari: FAIL)
A ScrollTimeline created with the default scrollOffsets should default to []: FAIL (Chrome: FAIL, Safari: FAIL)
'mm' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'#ff0000' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'calc(100% - 80px)' is a valid scroll offset value: FAIL (Chrome: FAIL, Safari: FAIL)
'100px 5%' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'deg' is an invalid scroll offset unit in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'rgb(0, 128, 0)' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'url("http://www.example.com/pinkish.gif")' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'{"target":{},"threshold":1}' is a valid scroll offset value: FAIL (Chrome: FAIL, Safari: FAIL)
'this_is_garbage' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'{}' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
A ScrollTimeline created with last 'auto' offset in scrollOffsets should be allowed.: FAIL (Chrome: FAIL, Safari: FAIL)
'Hz' is an invalid scroll offset unit in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'0' is a valid scroll offset value: FAIL (Chrome: FAIL, Safari: FAIL)
'left' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'calc(360deg / 4)' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'%' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'{"target":{},"threshold":0}' is a valid scroll offset value: FAIL (Chrome: FAIL, Safari: FAIL)
Creating a ScrollTimeline with an invalid scrollOffsets value should throw: FAIL (Chrome: FAIL, Safari: FAIL)
'{"target":{},"threshold":0.5}' is a valid scroll offset value: FAIL (Chrome: FAIL, Safari: FAIL)
'{"target":{}}' is a valid scroll offset value: FAIL (Chrome: FAIL, Safari: FAIL)
'pt' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'rem' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'cm' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'{"target":{},"threshold":2}' is an invalid scroll offset value in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
's' is an invalid scroll offset unit in scrollOffsets: FAIL (Chrome: FAIL, Safari: FAIL)
'vw' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)
'vmax' is a valid scroll offset unit: FAIL (Chrome: FAIL, Safari: FAIL)

Tests Disabled in Gecko Infrastructure

/scroll-animations/constructor.tentative.html: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-qr-debug, Gecko-windows7-32-debug] (Chrome: OK, Safari: OK)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/26339131de6a
[wpt PR 24341] - Implement ScrollTimeline.scrollOffsets API, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.