[csswg-drafts] [cssom-view] "Perform a scroll of a viewport" is passed an associated element it doesn't use (#13301)

AtkinsSJ has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] "Perform a scroll of a viewport" is passed an associated element it doesn't use ==
["Perform a scroll of a viewport"](https://drafts.csswg.org/cssom-view/#viewport-perform-a-scroll) is called with an optional "associated element", however, it does not list this as a parameter and doesn't use it in the algorithm.

eg: ["scroll to the beginning of the document"](https://drafts.csswg.org/cssom-view-1/#scroll-to-the-beginning-of-the-document)
> 4. [Perform a scroll](https://drafts.csswg.org/cssom-view-1/#viewport-perform-a-scroll) of viewport to position, and document’s [root element](https://drafts.csswg.org/css-display-4/#root-element) as the associated element, if there is one, or null otherwise.

Similarly, [`Window.scroll()`](https://drafts.csswg.org/cssom-view/#dom-window-scroll):
> 12. [Perform a scroll](https://drafts.csswg.org/cssom-view/#viewport-perform-a-scroll) of the [viewport](https://drafts.csswg.org/css2/#viewport%E2%91%A0) to position, document’s [root element](https://drafts.csswg.org/css-display-4/#root-element) as the associated element, if there is one, or null otherwise, and the scroll behavior being the value of the [behavior](https://drafts.csswg.org/cssom-view/#dom-scrolloptions-behavior) dictionary member of options. Let scrollPromise be the [Promise](https://webidl.spec.whatwg.org/#idl-promise) returned from this step.

"Perform a scroll of a viewport" does pass an associated element to ["perform a scroll of a scrolling box"](https://drafts.csswg.org/cssom-view/#perform-a-scroll), in steps 14 and 15, so perhaps the two methods got confused during editing?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13301 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 6 January 2026 11:35:59 UTC