Location

The location class relates to links, both visible to the document and metadata:

  • :any-link matches both :link and visited.
  • :link matches unvisited links.
  • :visited matches visited links.
  • :local-link matches links whose absolute URL is the same as the document's, e.g. for anchors on the same page.
  • :target matches elements with the target of the document URL.
  • :target-within matches :target, but also elements with a descendent which is the target of the document URL.
  • :scope matches any element which is a reference point for selectors to match against.

Backlinks