Skip to content

Conversation

@danielsakhapov
Copy link
Contributor

@danielsakhapov danielsakhapov commented Aug 27, 2025

As resolved in #11600, :target-before and :target-after pseudo classes allow to select scroll markers before/after the :target-current one.

@danielsakhapov danielsakhapov requested a review from flackr August 27, 2025 11:23
</div>

<h4 id="target-before-after">
Selecting Scroll Markers Before and After the Active Marker: the '':target-before'' and '':target-after'' pseudo-classes</h4>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect that this would specified together with :target-current, either rolling this in to the above section or keeping the above section about how to calculate the active marker and specifying :target-current here as well, whichever you think makes more sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved them to :target-current

@danielsakhapov danielsakhapov merged commit a286b18 into w3c:main Sep 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants