Closed Bug 2019189 Opened 9 months ago Closed 9 months ago

[wpt-sync] Sync PR 58029 - [Fonts] Fix relative colors in @font-palette-values override-colors

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
150 Branch
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}

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/429894983be1 https://hg.mozilla.org/integration/autoland/rev/3546c12c7bf5 [wpt PR 58029] - [Fonts] Fix relative colors in @font-palette-values override-colors, a=testonly
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
You need to log in before you can comment on or make changes to this bug.