pseudo-class
:local link — CSS reference
Draft selector for hyperlinks pointing to the same document URL. The link attribute alone cannot generally establish URL equivalence, so use explicit application state when needed. The local engine rejects this syntax; the base styling remains available.
Formal Syntax & Structure
css syntaxcss
:local-link { color: blue; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:local-link</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{color:green}:local-link{color:blue}</style><body><a id="a" href="#a">Section link</a></body></html>