[Webkit-unassigned] [Bug 61697] a:hover fails to work if it is the same color as a:link
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 25 15:16:07 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=61697
Alex Chan <webkitbugzilla at alexwlchan.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |webkitbugzilla at alexwlchan.n
| |et
--- Comment #9 from Alex Chan <webkitbugzilla at alexwlchan.net> ---
In case it's helpful, I encountered a similar behaviour where a:hover fails to work if it's the same as a, and there's a rule for a:visited. The rule for a:hover should override the a:visited, but it doesn't when it's the same as a plain a.
I suspect this has the same root cause as this bug.
This fails:
<style>
a { color: green; }
a:visited { color: red; }
a:hover { color: green; }
</style>
<a href="https://webkit.org">WebKit website</a> <br>
<a href="https://developer.mozilla.org/en-US/">MDN Web Docs</a>
This works:
<style>
a { color: green; }
a:visited { color: red; }
a:hover { color: blue; }
</style>
<a href="https://webkit.org">WebKit website</a> <br>
<a href="https://developer.mozilla.org/en-US/">MDN Web Docs</a>
This also works:
<style>
a { color: green; }
a:visited { color: red; }
a:hover { color: green; background: yellow; }
</style>
<a href="https://webkit.org">WebKit website</a> <br>
<a href="https://developer.mozilla.org/en-US/">MDN Web Docs</a>
--
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/20240325/6c4819f1/attachment.htm>
More information about the webkit-unassigned
mailing list