[wpt-sync] Sync PR 45855 - script: Emulate 'nearest' for inline axis in scroll to fragment
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 45855 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/45855
Details from upstream follow.
Martin Robinson <mrobinson@igalia.com> wrote:
script: Emulate 'nearest' for inline axis in scroll to fragment
Scrolling to fragment is supposed to be implemented via a call to
scrollIntoView()
with the configuration "nearest" for the inline
axis. Servo doesn't have support forscrollIntoView()
yet, so emulate
support for that by comparing the target rectangle with the viewport
rectangle.This also necesitated initializing the current viewport when creating
the Window object, which wasn't done before for some reason.<!-- Please describe your changes on the following line: -->
Reviewed in servo/servo#32129
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Comment 1•6 months ago
|
||
Assignee | ||
Comment 2•6 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
PASS
: 1
Chrome
OK
: 1
PASS
: 1
Safari
OK
: 1
PASS
: 1
Links
Comment 4•6 months ago
|
||
bugherder |
Description
•