Skip to content

Conversation

@flackr
Copy link
Contributor

@flackr flackr commented Feb 7, 2025

Adds the container option to ScrollIntoViewOptions allowing scrolling only the nearest containing scrolling box as resolved in #9452. This also sets us the algorithm to scroll an element into view for scroll markers #11138.

Adds the container option to ScrollIntoViewOptions
allowing scrolling only the nearest containing scrolling box
as resolved in w3c#9452.
@flackr flackr requested a review from tabatkins February 7, 2025 19:09
flackr added a commit to flackr/csswg-drafts that referenced this pull request Feb 7, 2025
When activating a marker, as resolved in w3c#11138 scrolling should be limited to the scrolling containers associated with the marker targets.
This builds on the addition of container to the scroll into view algorithm in w3c#11673.
tabatkins pushed a commit that referenced this pull request Feb 7, 2025
When activating a marker, as resolved in #11138 scrolling should be limited to the scrolling containers associated with the marker targets.
This builds on the addition of container to the scroll into view algorithm in #11673.
Comment on lines +1302 to +1303
1. If the {{ScrollIntoViewOptions/container}} dictionary member of <var>options</var>,
set <var>container</var> to this element.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is missing some words.

AtkinsSJ added a commit to AtkinsSJ/ladybird that referenced this pull request Feb 12, 2025
kalenikaliaksandr pushed a commit to LadybirdBrowser/ladybird that referenced this pull request Feb 12, 2025
@bakura10
Copy link

bakura10 commented Mar 4, 2025

Finally! This will be a game changer. Just one quick question: is there a way to detect support for it? This would be essential to be able to provide a fallback for older browsers.

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.

4 participants