[Webkit-unassigned] [Bug 259063] New: `currentColor` in `color-mix()` ignores selectors with `:visited` pseudo-class
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 10 11:57:43 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=259063
Bug ID: 259063
Summary: `currentColor` in `color-mix()` ignores selectors with
`:visited` pseudo-class
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: slipped-gazette.0w at icloud.com
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.
--
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/20230710/a41c7d94/attachment.htm>
More information about the webkit-unassigned
mailing list