Bug 229676
| Summary: | `color-contrast()` not working with system colors | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adam Argyle <argyle> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | akeerthi, ntim, sam, simon.fraser, timothy, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Adam Argyle
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?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Aditya Keerthi
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.
```
Radar WebKit Bug Importer
<rdar://problem/82797037>
Tim Nguyen (:ntim)
We're removing color-contrast in bug 278864