Bug 229676 - `color-contrast()` not working with system colors
Summary: `color-contrast()` not working with system colors
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-08-30 11:06 PDT by Adam Argyle
Modified: 2021-09-06 11:07 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Argyle 2021-08-30 11:06:24 PDT
Looks like system colors don't work as a value to be compared against. Reduced test case here: https://cdpn.io/argyleink/debug/bbaf6bf6aa72419da3bd53f5eee85329


Maybe system colors also aren't potential candidates in the list of valid comparison colors either?
Comment 1 Aditya Keerthi 2021-08-30 17:30:59 PDT
See also: https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp#L1368


```
// FIXME: We don't have enough context in the parser to resolving a system keyword
// correctly. We should package up the relative color parameters and resolve the
// whole thing at the appropriate time when the origin color is a system keyword.
```
Comment 2 Radar WebKit Bug Importer 2021-09-06 11:07:16 PDT
<rdar://problem/82797037>