File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1620,6 +1620,13 @@ Restrictions and Clarifications {#cv-notes}
1620
1620
if this changes the element's size,
1621
1621
it might not align in the viewport exactly as requested.
1622
1622
1623
+ If an element is not available to user-agent features
1624
+ (for example, if it is [=skipped=]
1625
+ due to a ''content-visiblity: hidden'' ancestor),
1626
+ then scrolling operations
1627
+ must not scroll to it at all,
1628
+ as if it did not have a layout box.
1629
+
1623
1630
6. If an element with ''content-visibility: auto''
1624
1631
that is [=skipping its contents=]
1625
1632
is focused
Original file line number Diff line number Diff line change @@ -1105,7 +1105,9 @@ The <dfn method for=Element caniuse=scrollintoview>scrollIntoView(<var>arg</var>
1105
1105
1. Set <var> block</var> to the {{ScrollIntoViewOptions/block}} dictionary member of <var> options</var> .
1106
1106
1. Set <var> inline</var> to the {{ScrollIntoViewOptions/inline}} dictionary member of <var> options</var> .
1107
1107
1. Otherwise, if <var> arg</var> is false, then set <var> block</var> to "<code> end</code> ".
1108
- 1. If the element does not have any associated <a>layout box</a> , then return.
1108
+ 1. If the element does not have any associated <a>layout box</a> ,
1109
+ or is not available to user-agent features,
1110
+ then return.
1109
1111
1. <a lt='scroll an element into view'>Scroll the element into view</a>
1110
1112
with <var> behavior</var> , <var> block</var> , and <var> inline</var> .
1111
1113
1. Optionally perform some other action that brings the element to the user's attention.
You can’t perform that action at this time.
0 commit comments