ampproject / ampproject/worker-dom
Element.scrollTo() Support
- Dominant language
- TypeScript
- Stars
- 3.3k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
Do you have a plan to support `Element.scrollTo()`? Our use case is to display the selected item in the the vertical scroll navigations. I'm not sure the change has negative impact on AMP UX, but it would affect only inside the element compared to `Window.scrollTo()`.
ref: https://github.com/ampproject/worker-dom/blob/main/web_compat_table.md
Contributor guide
Research direction
Start with web_compat_table.md and the issue's references to Element.scrollTo() and Window.scrollTo() to understand the intended compatibility scope. Identify the relevant implementation and tests for these DOM APIs, then define done as Element.scrollTo() working for scrolling within an element without changing Window.scrollTo() behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100