Bug 223654 - Border-color set as currentColor on button is not changing on hover
Summary: Border-color set as currentColor on button is not changing on hover
Status: RESOLVED DUPLICATE of bug 240401
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-23 13:54 PDT by Vadim Makeev
Modified: 2022-05-14 22:40 PDT (History)
6 users (show)

See Also:


Attachments
Demo for the bug (411 bytes, text/html)
2021-03-23 13:54 PDT, Vadim Makeev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***