Closed Bug 2037632 Opened 1 month ago Closed 1 month ago

Make `auto` default for Element.scrollIntoView

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.
Assignee: nobody → hikezoe.birchill
Status: NEW → ASSIGNED
Pushed by imoraru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/74ba4ed0d4e2 https://hg.mozilla.org/integration/autoland/rev/ec30eb9373c0 Revert "Bug 2037632 - Make `auto` as the default ScrollIntoViewOptions. r=layout-reviewers,webidl,emilio" for causing wr failures on scrollbar-gutter-scroll-into-view.html.

Revert for causing wr failures on scrollbar-gutter-scroll-into-view.html.

Flags: needinfo?(hikezoe.birchill)

The previous change collapsed the auto fallback to a fixed pair (Start for
the physical vertical axis, Nearest for the physical horizontal axis), which
matches the spec defaults (block: start, inline: nearest) only in horizontal
writing modes. In vertical writing modes the physical-to-logical mapping is
reversed, and in vertical-rl the block-axis default is "end" rather than
"start".

Pass the target's writing mode through ScrollToShowRect into
GetApplicableWhereToScroll so it can resolve "auto" against the correct
logical axis.

This fixes the
testing/web-platform/tests/css/css-overflow/scrollbar-gutter-scroll-into-view.html
failure.

Posted an additional change to fix the scrollbar-gutter-scroll-into-view.html failure.

Flags: needinfo?(hikezoe.birchill)

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/59725 for changes under testing/web-platform/tests

Pushed by hikezoe.birchill@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/eb0c4c6ef434 https://hg.mozilla.org/integration/autoland/rev/a5d3125bbfa0 Make `auto` as the default ScrollIntoViewOptions. r=layout-reviewers,webidl,emilio https://github.com/mozilla-firefox/firefox/commit/16589473999c https://hg.mozilla.org/integration/autoland/rev/d3d82538775f Resolve scrollIntoView "auto" against the target's writing mode to fix scrollbar-gutter-scroll-into-view regression. r=layout-reviewers,dshin
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch

Upstream PR merged by moz-wptsync-bot

QA Whiteboard: [qa-triage-done-c153/b152]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: