You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[css-overflow-5] Limit scrolling when activating a marker (#11674)
When activating a marker, as resolved in #11138 scrolling should be limited to the scrolling containers associated with the marker targets.
This builds on the addition of container to the scroll into view algorithm in #11673.
Copy file name to clipboardExpand all lines: css-overflow-5/Overview.bs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -398,7 +398,8 @@ Selecting The Active Scroll Marker: the '':target-current'' pseudo-class</h4>
398
398
1. Let <var>element</var> be the [=scroll target=] of the control.
399
399
1. Let <var>block</var> be "<code>start</code>".
400
400
1. Let <var>inline</var> be "<code>start</code>".
401
-
1. <a lt='scroll a target into view'>Scroll the |element| into view</a> with <var>block</var> and <var>inline</var>.
401
+
1. Let <var>container</var> be the nearest common ancestor <a>scroll container</a> of the scroll markers in the [=scroll marker group=] associated with this [=scroll marker=].
402
+
1. <a lt='scroll a target into view'>Scroll the |element| into view</a> with <var>block</var>, <var>inline</var>, and <var>container</var>.
402
403
1. : If the activation was triggered by invocation
403
404
::
404
405
1. <a spec=html>Follow the hyperlink</a> updating the URL, however retain focus on the marker element.
0 commit comments