Bug 223654

Summary: Border-color set as currentColor on button is not changing on hover
Product: WebKit Reporter: Vadim Makeev <hi>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: akeerthi, koivisto, ntim, sam, twilco.o, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: All   
OS: All   
Attachments:
Description Flags
Demo for the bug none

Description Vadim Makeev 2021-03-23 13:54:05 PDT
Created attachment 424060 [details]
Demo for the bug

If you have border-color set as currentColor, it’s not possible to change the color on hover for a button.

# Steps to reproduce

1. Set border-color for a button to currentColor
2. Change the color property on hover to green

# Expected behavior

- Green text color
- Green border color

# Actual behavior

- Green text color
- Black border color

See the demo for examples.

---

It works fine

- For a div
- For background-color
- With focus
- When you slightly change opacity to 0.99

Sometimes it works

- If you move cursor fast enough from the right button to the left
- With no reason, just for a few seconds
Comment 1 Radar WebKit Bug Importer 2021-03-30 13:55:15 PDT
<rdar://problem/76020369>
Comment 2 Tim Nguyen (:ntim) 2022-05-14 22:40:46 PDT

*** This bug has been marked as a duplicate of bug 240401 ***