Closed keithamus closed 1 month ago
Thanks! My personal review is in https://github.com/w3c/csswg-drafts/issues/10975, but that's not the full TAG's opinion. The use case, at least, seems great.
Agree with @jyasskin about the name, but the use case is a huge pain point. It is very nontrivial to implement with JS, and comes up in literally every navigation menu. The lack of this made teaching web technologies significantly harder.
The TAG discussed this as a whole and agreed that we're enthusiastic about the use case being solved, and want it to be solved with more precise names. Thank you!
こんにちは TAG-さん!
I'm requesting a TAG review of the
:local-link
pseudo class.The :local-link pseudo-class allows authors to style hyperlinks based on the users current location within a site. It represents an element that is the source anchor of a hyperlink whose target’s absolute URL matches the element’s own document URL. If the hyperlink’s target includes a fragment URL, then the fragment URL of the current URL must also match; if it does not, then the fragment URL portion of the current URL is not taken into account in the comparison.
Further details:
You should also know that...
I'll be implementing a prototype this week in Chrome/Firefox/WebKit.