Skip to content

Commit 860e460

Browse files
tunethewebddbeck
andauthored
Add scroll-into-view-container (#3603)
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
1 parent 6357bc4 commit 860e460

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: scrollIntoView() container
2+
description: The `container` option of the `scrollIntoView()` method sets which ancestor scroll container to scroll. The `"nearest"` value scrolls only the nearest ancestor, instead of the default `"all"`.
3+
spec: https://drafts.csswg.org/cssom-view-1/#dom-scrollintoviewoptions-container
4+
group: scrolling
5+
compat_features:
6+
- api.Element.scrollIntoView.options_parameter.container_option
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated from: scroll-into-view-container.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "140"
8+
chrome_android: "140"
9+
edge: "140"
10+
compat_features:
11+
- api.Element.scrollIntoView.options_parameter.container_option

features/scroll-into-view.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ compat_features:
1313
# added quite a bit later than scrollIntoView itself.
1414
- api.Element.scrollIntoView.options_parameter.block_option
1515
- api.Element.scrollIntoView.options_parameter.inline_option
16-
# TODO: decide whether to move this option to a separate feature. It's only
17-
# in Chromium 140+.
18-
- api.Element.scrollIntoView.options_parameter.container_option

features/scroll-into-view.yml.dist

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,3 @@ compat_features:
5454
# safari_ios: "14"
5555
- api.Element.scrollIntoView.options_parameter.block_option
5656
- api.Element.scrollIntoView.options_parameter.inline_option
57-
58-
# baseline: false
59-
# support:
60-
# chrome: "140"
61-
# chrome_android: "140"
62-
# edge: "140"
63-
- api.Element.scrollIntoView.options_parameter.container_option

0 commit comments

Comments
 (0)