Bug 262914 - [css-color-5] Support light-dark() function for color values
Summary: [css-color-5] Support light-dark() function for color values
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aditya Keerthi
URL:
Keywords: InRadar
Depends on: 266889
Blocks:
  Show dependency treegraph
 
Reported: 2023-10-09 13:14 PDT by Bramus
Modified: 2024-09-24 16:07 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.