Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cssom-view-1] Minor corrections to scrolling algorithms #11701

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AtkinsSJ
Copy link
Contributor

3 small corrections to the scrolling-related algorithms that came up while implementing them:

  1. The "Return position." step in "determine the scroll-into-view position" makes more sense at the top level.
  2. The behavior parameter to "determine the scroll-into-view position" is not used and seems to be a leftover from before it was split up.
  3. Say what value to check container against in scrollIntoView(). I'm not 100% sure on this but out of the two options, "nearest" makes the most sense.

This step makes more sense as step 11 (just after step 10 where
`position` is declared) than step 10.9, and looks like a typo.
AtkinsSJ added a commit to AtkinsSJ/ladybird that referenced this pull request Feb 12, 2025
...from "determine the scroll-into-view position".

This isn't used, and seems to be a leftover from before this algorithm
was split out of "scroll a target into view".
@AtkinsSJ AtkinsSJ force-pushed the determine-scroll-into-view-position-step-number branch from b50436a to 91fbe6d Compare February 12, 2025 16:46
kalenikaliaksandr pushed a commit to LadybirdBrowser/ladybird that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant