From 47e5d8cda259fb7effa2cbd43f09f19ec68f4cae Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Fri, 5 Dec 2025 19:39:27 +0000 Subject: [PATCH 1/2] Add scroll-into-view-container --- features/scroll-into-view-container.yml | 6 ++++++ features/scroll-into-view-container.yml.dist | 11 +++++++++++ features/scroll-into-view.yml | 3 --- features/scroll-into-view.yml.dist | 7 ------- 4 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 features/scroll-into-view-container.yml create mode 100644 features/scroll-into-view-container.yml.dist diff --git a/features/scroll-into-view-container.yml b/features/scroll-into-view-container.yml new file mode 100644 index 00000000000..3e5a775ff06 --- /dev/null +++ b/features/scroll-into-view-container.yml @@ -0,0 +1,6 @@ +name: scrollIntoView() container +description: The `ScrollIntoViewOptions` `container` option allows developers to perform a `scrollIntoView()` only scrolling the nearest ancestor scroll container +spec: https://drafts.csswg.org/cssom-view-1/#dom-scrollintoviewoptions-container +group: scrolling +compat_features: + - api.Element.scrollIntoView.options_parameter.container_option diff --git a/features/scroll-into-view-container.yml.dist b/features/scroll-into-view-container.yml.dist new file mode 100644 index 00000000000..212d6b58810 --- /dev/null +++ b/features/scroll-into-view-container.yml.dist @@ -0,0 +1,11 @@ +# Generated from: scroll-into-view-container.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "140" + chrome_android: "140" + edge: "140" +compat_features: + - api.Element.scrollIntoView.options_parameter.container_option diff --git a/features/scroll-into-view.yml b/features/scroll-into-view.yml index 6ed49af05e1..035733cc898 100644 --- a/features/scroll-into-view.yml +++ b/features/scroll-into-view.yml @@ -13,6 +13,3 @@ compat_features: # added quite a bit later than scrollIntoView itself. - api.Element.scrollIntoView.options_parameter.block_option - api.Element.scrollIntoView.options_parameter.inline_option - # TODO: decide whether to move this option to a separate feature. It's only - # in Chromium 140+. - - api.Element.scrollIntoView.options_parameter.container_option diff --git a/features/scroll-into-view.yml.dist b/features/scroll-into-view.yml.dist index 359a2d957fd..ff7a1a826bf 100644 --- a/features/scroll-into-view.yml.dist +++ b/features/scroll-into-view.yml.dist @@ -54,10 +54,3 @@ compat_features: # safari_ios: "14" - api.Element.scrollIntoView.options_parameter.block_option - api.Element.scrollIntoView.options_parameter.inline_option - - # baseline: false - # support: - # chrome: "140" - # chrome_android: "140" - # edge: "140" - - api.Element.scrollIntoView.options_parameter.container_option From 39cbd77445337d6d6d136b84b513125778be5d1d Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Mon, 8 Dec 2025 16:53:14 +0000 Subject: [PATCH 2/2] Update features/scroll-into-view-container.yml Co-authored-by: Daniel D. Beck --- features/scroll-into-view-container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/scroll-into-view-container.yml b/features/scroll-into-view-container.yml index 3e5a775ff06..af3861ae349 100644 --- a/features/scroll-into-view-container.yml +++ b/features/scroll-into-view-container.yml @@ -1,5 +1,5 @@ name: scrollIntoView() container -description: The `ScrollIntoViewOptions` `container` option allows developers to perform a `scrollIntoView()` only scrolling the nearest ancestor scroll container +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"`. spec: https://drafts.csswg.org/cssom-view-1/#dom-scrollintoviewoptions-container group: scrolling compat_features: