Bug 262914
Summary: | [css-color-5] Support light-dark() function for color values | ||
---|---|---|---|
Product: | WebKit | Reporter: | Bramus <bramus> |
Component: | CSS | Assignee: | Aditya Keerthi <akeerthi> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | akeerthi, lwarlow, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 266889 | ||
Bug Blocks: |
Bramus
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/117033939>
Aditya Keerthi
Pull request: https://github.com/WebKit/WebKit/pull/22242
Aditya Keerthi
Pull request: https://github.com/WebKit/WebKit/pull/23364
EWS
Committed 273634@main (42f9569ae95a): <https://commits.webkit.org/273634@main>
Reviewed commits have been landed. Closing PR #23364 and removing active labels.