Skip to content

Commit 905ed13

Browse files
committed
[css-overflow-5] Temporarily go with :target-current. w3c#10918
1 parent ecc957b commit 905ed13

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

css-overflow-5/Overview.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,16 +263,17 @@ The 'scroll-marker-group' property</h4>
263263
or via the tab key when currently active or when no other ''::scroll-marker'' is active and this is the first marker in the group,
264264
ensuring the group has a <a href="https://open-ui.org/components/focusgroup.explainer/#guaranteed-tab-stop">guaranteed tab stop</a>.
265265

266-
<h4 id="active-scroll-marker">The active scroll marker</h4>
266+
<h4 id="active-scroll-marker">
267+
Selecting The Active Scroll Marker: the '':target-current'' pseudo-class</h4>
267268

268269
Exactly one [=scroll marker=] within each [=scroll marker group=] is determined to be active at a time.
269-
An active [=scroll marker=] can be styled by the '':checked'' pseudo-class.
270+
Such "active" [=scroll markers=] match the <dfn selector>:target-current</dfn> pseudo-class.
270271

271272
<div class='example'>
272273
The following snippet shows how the link to the currently scrolled section can be highlighted:
273274

274275
<pre highlight=css>
275-
a:checked {
276+
a:target-current {
276277
font-weight: bold;
277278
}
278279
</pre>

0 commit comments

Comments
 (0)