-
Notifications
You must be signed in to change notification settings - Fork 23k
Editorial review: Document :target-before and :target-after pseudos #42103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Editorial review: Document :target-before and :target-after pseudos #42103
Conversation
Preview URLs (9 pages)
Flaws (4)Note! 6 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
URL:
External URLs (2)URL:
URL:
(comment last updated: 2025-11-25 10:53:57) |
files/en-us/web/css/reference/selectors/_colon_target-after/index.md
Outdated
Show resolved
Hide resolved
|
LGTM |
| - {{cssxref("::scroll-marker-group")}} | ||
| - {{cssxref("::scroll-marker")}} | ||
| - {{cssxref(":target-current")}} | ||
| - [`:target-before`](/en-US/docs/Web/CSS/Reference/Selectors/:target-before) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use macros in the css docs whenever possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually do, but at the moment, I'm using raw markdown links until the cssxref macro is fixed. Last time I checked, it was still broken for new links.
| } | ||
|
|
||
| :target-current { | ||
| color: red; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add an outline or some other non-color differentiator for those who can't distinguish reds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, the three different link states (before, current, and after) are distinguished by gray and line-through, red, and black and underlined, so they are not distinguished by color alone.
Description
Chrome 142 adds support for the
:target-beforeand:target-afterpseudo classes. See https://chromestatus.com/feature/5120827674722304.This PR adds reference docs for the new pseudos, and adds mention and coverage of them in appropriate places.
Motivation
Additional details
Related issues and pull requests