Closed Bug 1835889 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 40310 - [scroll-start] Add scroll-start tests

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

David Awogbemila <awogbemila@chromium.org> wrote:

[scroll-start] Add scroll-start tests

scroll-start[1] should set the initial scroll position of a scroller
This is an alternative approach to crrev.com/c/4545951.

Some notes on the cases covered by these tests:

scroll-start-display-toggled.html: scroll-start should set the scroll position
of a scroller that is toggled from display:none to display:block (or other
display: causing a layout box to be newly created[2]).

scroll-start-overflow-toggled.html: scroll-start should not be affected by
toggling overflow.

scroll-start-fieldset.html: the scrollable area of a \<fieldset> is handled
slightly differently from other scrollers in blink.

scroll-start-root.html: scroll start should work when set on the root/document
scroller.

scroll-start-vertical-lr.html: scroll-start should work correctly in
horizontal as well as vertical writing modes.

scroll-start-with-anchor-navigation.html: scroll-start should not
override anchor navigation.

scroll-start-with-fragment-navigation.html: scroll-start should not
override fragment navigation.

scroll-start-with-scroll-snap.html: scroll-snap should not override
scroll-snap.

scroll-start-with-text-fragment-navigation.html: scroll-start should not
override text-fragment navigation.

scroll-start.html: generic scroll-start tests.

[1] https://drafts.csswg.org/css-scroll-snap-2/#scroll-start
[2] https://drafts.csswg.org/css-scroll-snap-2/#toggling-display-none

Bug: 1439807
Change-Id: Ib59e98de9b1752cf78b89d00c0fe0330fb3f09ca
Reviewed-on: https://chromium-review.googlesource.com/4569089
WPT-Export-Revision: c8b6c0275cc7f2657e7408cc2ddaf665367ccaba

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 12 tests and 1 subtests

Status Summary

Firefox

OK : 12
PASS: 2
FAIL: 11

Chrome

OK : 12
PASS: 3
FAIL: 10

Safari

OK : 12
PASS: 3
FAIL: 10

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3d0b6b72f3b3 [wpt PR 40310] - [scroll-start] Add scroll-start tests, a=testonly https://hg.mozilla.org/integration/autoland/rev/f3e5b8ebfe7c [wpt PR 40310] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.