- From: Nikolas Schröter via GitHub <noreply@w3.org>
- Date: Wed, 13 May 2026 21:32:23 +0000
- To: public-css-archive@w3.org
nwidynski has just created a new issue for https://github.com/w3c/csswg-drafts:
== [cssom] newly performed scroll should only abort smooth scroll in the same axis ==
Issue: https://bugzilla.mozilla.org/show_bug.cgi?id=2039246
> 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.
Mutating scroll offset in a different axis than an ongoing smooth scroll should not cause the ongoing scroll to be cancelled. This means that these two should be functionally equivalent, whereas they are currently not.
```js
element.scrollLeft = 0;
element.scrollTop = 0;
```
```js
element.scrollTo({left: 0, top: 0});
```
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13925 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 May 2026 21:32:27 UTC