w3c / w3c/csswg-drafts

[cssom-view] Remove incorrect spec prose "emit the scrollend event"

Open
#8,397 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cssom-view-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

https://w3c.github.io/csswg-drafts/cssom-view/#perform-a-scroll

...then perform a smooth scroll of box to position. Once the position has finished updating, emit the scrollend event. Otherwise, perform an instant scroll of box to position. After an instant scroll emit the scrollend event.

Note:​ In the case the VisualViewport was scrolled, yielding no translation changes in the document, emit the scrollend on the VisualViewport just as the scroll event is emitted for VisualViewport scrolling.

This algorithm shouldn't say to fire scrollend events, as that is done in https://w3c.github.io/csswg-drafts/cssom-view/#scrolling-events

If you want, you can include a note that clarifies where events are fired, without sounding like requirements. (See https://wpc.guide/skills/#building-blocks-of-a-spec)

cc @emilio @dlrobertson @argyleink

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CSSOM View “perform a scroll” and “scrolling events” sections. Remove the event-firing prose from the algorithm, optionally clarifying event targets without adding requirements, and confirm that scrollend behavior remains specified in the scrolling-events section.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.