Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions files/en-us/web/api/element/scrollintoview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down