Skip to content

Commit

Permalink
Replace scrollIntoView() with #scroll-an-element-into-view
Browse files Browse the repository at this point in the history
Domenic suggested this here:
whatwg/html#6040 (comment)
  • Loading branch information
josepharhar committed Nov 4, 2020
1 parent c72bd08 commit 0360d52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions explainers/beforematch-spec-draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ the following algorithm:
the content-visibility: hidden-matchable property.

2.3. If the beforematch event has been disabled or there is no _matchable
ancestor_, call
[`scrollIntoView()`](https://drafts.csswg.org/cssom-view/#dom-element-scrollintoview)
ancestor_, run
[scroll into view](https://drafts.csswg.org/cssom-view/#scroll-an-element-into-view)
on the _active match_ and end the algorithm.

2.4. Fire the beforematch event on the _matchable ancestor_.
Expand All @@ -47,8 +47,8 @@ the following algorithm:
- The _active match_'s `visibility` property is not `visible` in any
ancestors.

3.2. Call
[`scrollIntoView()`](https://drafts.csswg.org/cssom-view/#dom-element-scrollintoview)
3.2. Run
[scroll into view](https://drafts.csswg.org/cssom-view/#scroll-an-element-into-view)
on the _active match_.

# content-visibility: hidden-matchable
Expand Down

0 comments on commit 0360d52

Please sign in to comment.