Bug 262914

Summary: [css-color-5] Support light-dark() function for color values
Product: WebKit Reporter: Bramus <bramus>
Component: CSSAssignee: Aditya Keerthi <akeerthi>
Status: RESOLVED FIXED    
Severity: Normal CC: agafvv, akeerthi, lwarlow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 266889    
Bug Blocks:    

Description Bramus 2023-10-09 13:14:27 PDT
Implement light-dark(<color>, <color>)

This function computes to the computed value of the first color, if the used color scheme is light or unknown, or to the computed value of the second color, if the used color scheme is dark.

Relevant Links:
- Spec: https://drafts.csswg.org/css-color-5/#light-dark
- CrBug: https://bugs.chromium.org/p/chromium/issues/detail?id=1490618
- Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1856999
Comment 1 Radar WebKit Bug Importer 2023-10-16 13:15:13 PDT
<rdar://problem/117033939>
Comment 2 Aditya Keerthi 2023-12-26 09:34:02 PST
Pull request: https://github.com/WebKit/WebKit/pull/22242
Comment 3 Aditya Keerthi 2024-01-27 14:27:29 PST
Pull request: https://github.com/WebKit/WebKit/pull/23364
Comment 4 EWS 2024-01-28 16:33:04 PST
Committed 273634@main (42f9569ae95a): <https://commits.webkit.org/273634@main>

Reviewed commits have been landed. Closing PR #23364 and removing active labels.