Bug 229676

Summary: `color-contrast()` not working with system colors
Product: WebKit Reporter: Adam Argyle <argyle>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: akeerthi, sam, simon.fraser, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

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>