[Webkit-unassigned] [Bug 187799] SVG <a> with focus lacks visual indicator

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 17 16:04:39 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=187799

--- Comment #4 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
We need to update "svg.css" with following to fix this:

/* As SVG does not provide a default visual style for links,
   it's considered best practice to add some */

@namespace svg url(http://www.w3.org/2000/svg);
/* Necessary to select only SVG <a> elements, and not also HTML's.
   See warning below */

svg|a:link,
svg|a:visited {
  cursor: pointer;
}

svg|a text,
text svg|a {
  fill: blue; /* Even for text, SVG uses fill over color */
  text-decoration: underline;
}

svg|a:hover,
svg|a:active {
  outline: dotted 1px blue;
}

https://github.com/WebKit/WebKit/blob/c2dd7ba9890874670b16f914a46afb7c420da9ce/Source/WebCore/css/svg.css#L4

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221218/c49c6c78/attachment.htm>


More information about the webkit-unassigned mailing list