From 83f26f43ec553613f9c7fb23f9fbcdad152188bb Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Fri, 3 Jul 2026 08:05:09 +0100 Subject: [PATCH] fix Element.scrollIntoView() rendering issue --- .../web/api/element/scrollintoview/index.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/files/en-us/web/api/element/scrollintoview/index.md b/files/en-us/web/api/element/scrollintoview/index.md index e43999ca7a072d2..61b84ab24785cde 100644 --- a/files/en-us/web/api/element/scrollintoview/index.md +++ b/files/en-us/web/api/element/scrollintoview/index.md @@ -22,17 +22,11 @@ scrollIntoView(options) - `alignToTop` {{optional_inline}} - : A boolean value: - - If `true`, the top of the element will be aligned to the top of the - visible area of the scrollable ancestor. Corresponds to - `scrollIntoViewOptions: {block: "start", inline: "nearest"}`. This is - the default value. - - If `false`, the bottom of the element will be aligned to the bottom - of the visible area of the scrollable ancestor. Corresponds to -- If `true`, the top of the element will be aligned to the top of the visible area of the scrollable ancestor. - Corresponds to `scrollIntoViewOptions: {block: "start", inline: "nearest"}`. - This is the default value. -- If `false`, the bottom of the element will be aligned to the bottom of the visible area of the scrollable ancestor. - Corresponds to `scrollIntoViewOptions: {block: "end", inline: "nearest"}`. + - If `true`, the top of the element will be aligned to the top of the visible area of the scrollable ancestor. + Corresponds to `scrollIntoViewOptions: {block: "start", inline: "nearest"}`. + This is the default value. + - If `false`, the bottom of the element will be aligned to the bottom of the visible area of the scrollable ancestor. + Corresponds to `scrollIntoViewOptions: {block: "end", inline: "nearest"}`. - `options` {{optional_inline}} - : An object with the following properties: