WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
259063
`currentColor` in `color-mix()` ignores selectors with `:visited` pseudo-class
https://bugs.webkit.org/show_bug.cgi?id=259063
Summary
`currentColor` in `color-mix()` ignores selectors with `:visited` pseudo-class
Niklas Ljunglöf
Reported
2023-07-10 11:57:43 PDT
How to reproduce: ``` a { background-color: white; &:link { color: navy }; &:visited { color: firebrick }; &:hover { background-color: color-mix(in srgb, currentColor, white 75%); }; } ``` Currently with this code, `currentColor` inherits `navy` instead of the expected `firebrick`. I know these pseudo-classes come with several restrictions due to privacy concerns, however I don't think they are relevant here since `currentColor` works as expected when not using `color-mix()`. Furthermore this issue does not seem to occur in Chrome or Firefox.
Attachments
Testcase
(221 bytes, text/html)
2023-08-21 09:11 PDT
,
Tim Nguyen (:ntim)
no flags
Details
Testcase
(256 bytes, text/html)
2023-08-21 09:12 PDT
,
Tim Nguyen (:ntim)
no flags
Details
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-07-17 11:58:18 PDT
<
rdar://problem/112419198
>
Tim Nguyen (:ntim)
Comment 2
2023-08-21 09:11:02 PDT
Created
attachment 467368
[details]
Testcase
Tim Nguyen (:ntim)
Comment 3
2023-08-21 09:12:37 PDT
Created
attachment 467369
[details]
Testcase
Matthieu Dubet
Comment 4
2023-08-22 07:03:42 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/16928
EWS
Comment 5
2023-08-25 02:24:10 PDT
Committed
267271@main
(7b938d011b0e): <
https://commits.webkit.org/267271@main
> Reviewed commits have been landed. Closing PR #16928 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug