Open Bug 2039246 Opened 4 days ago Updated 4 days ago

"scroll-behavior: smooth" cancels sequential bi-directional scroll

Categories

(Core :: Panning and Zooming, defect)

Firefox 150
defect

Tracking

()

UNCONFIRMED

People

(Reporter: oss, Unassigned)

References

()

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36

Steps to reproduce:

For reproduction steps, see https://issues.chromium.org/u/2/issues/512157659

Actual results:

Only the last mutation affects scroll offset.

Expected results:

Both mutations should be applied.

The Bugbug bot thinks this bug should belong to the 'Core::Panning and Zooming' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Panning and Zooming
Product: Firefox → Core

This is a spec issue: from the spec text:

When a user agent is to perform a scroll of a scrolling box box, to a given position position, an associated element or pseudo-element element and optionally a scroll behavior behavior (which is "auto" if omitted), the following steps must be run:

    1. Abort any ongoing smooth scroll for box.

So, with:

            parent.scrollLeft = 0;
            parent.scrollTop = 0;

The parent.scrollTop cancels parent.scrollLeft.

oss, would you mind filing a spec issue? Thanks!

Flags: needinfo?(oss)

(In reply to Hiroyuki Ikezoe (:hiro) from comment #2)

This is a spec issue: from the spec text:

When a user agent is to perform a scroll of a scrolling box box, to a given position position, an associated element or pseudo-element element and optionally a scroll behavior behavior (which is "auto" if omitted), the following steps must be run:

    1. Abort any ongoing smooth scroll for box.

So, with:

            parent.scrollLeft = 0;
            parent.scrollTop = 0;

The parent.scrollTop cancels parent.scrollLeft.

oss, would you mind filing a spec issue? Thanks!

https://github.com/w3c/csswg-drafts/issues/13925#issue-4441322229

Flags: needinfo?(oss)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: