[wpt-sync] Sync PR 58029 - [Fonts] Fix relative colors in @font-palette-values override-colors
Categories
(Core :: Layout: Text and Fonts, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 58029 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/58029
Details from upstream follow.
Gaurav Kumar <gauravkum@microsoft.com> wrote:
[Fonts] Fix relative colors in @font-palette-values override-colors
Complex color values such as relative colors (e.g., lch(from blue
calc(0.5 * l) c h)) functions specified in the override-colors
descriptor of @font-palette-values were being ignored. Only simple color
keywords like red or blue and pre-resolved hex/rgb colors worked
correctly.This change updates
StyleRuleFontPaletteValues::GetOverrideColorsAsVector()to call
ResolveColorValue()for complex color types that fall through the
existing fast paths for identifier values and CSSColor.Bug: 417398613
Change-Id: I306539e547b9f2e52f4aeed8e4a3fd9eee11de2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7525791
Reviewed-by: Anders Hartvoll Ruud \<andruud@chromium.org>
Commit-Queue: Gaurav Kumar \<gauravkum@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1589940}
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 1•9 months ago
|
||
| Assignee | ||
Comment 2•9 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
PASS: 1
Chrome
FAIL: 1
Safari
FAIL: 1
Links
Comment 4•9 months ago
|
||
| bugherder | ||
Description
•