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.
It's common to style the active page in a list of links differently the others to denote the user is on such a page. This typically requires maintaining such state in the host language, such as the server side template language, or in the client. `:local-link` provides a browser built-in solution to this.
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
No milestones specified
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/ad994a5a-8966-449d-a0e1-2f46086e4bc2%40app.fastmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABc02_KRG%2BLYkFqsaZO-H2mBn1W8c4pHBqtXPLoWq0GtuEKQPQ%40mail.gmail.com.