Skip to content
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

CSS Selectors 4; :local-link #998

Closed
1 task done
keithamus opened this issue Sep 30, 2024 · 3 comments
Closed
1 task done

CSS Selectors 4; :local-link #998

keithamus opened this issue Sep 30, 2024 · 3 comments

Comments

@keithamus
Copy link

keithamus commented Sep 30, 2024

こんにちは 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:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: I'll be working on prototypes for browsers this week.
  • The group where the work on this specification is currently being done: CSSWG
  • The group where standardization of this work is intended to be done (if different from the current group): CSSWG
  • Major unresolved issues with or opposition to this specification: None
  • This work is being funded by: Me, or I guess GitHub, but they allow me to contribute as an independant.

You should also know that...

I'll be implementing a prototype this week in Chrome/Firefox/WebKit.

@jyasskin
Copy link
Contributor

Thanks! My personal review is in w3c/csswg-drafts#10975, but that's not the full TAG's opinion. The use case, at least, seems great.

@LeaVerou LeaVerou self-assigned this Sep 30, 2024
@LeaVerou
Copy link
Member

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.

@jyasskin
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants