Closed Bug 2080241 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63426 - Preserve 'none' keywords across relative color resolution

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 63426 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63426
Details from upstream follow.

Fredrik Söderquist <fs@opera.com> wrote:

Preserve 'none' keywords across relative color resolution

Per [1]:

The component keywords return a \<number>, or 'none'.

Factor out a ToChannelValue() helper from UnresolvedRelativeColor's
Resolve() implementation and make it handle an expression that consists
of only a component keyword reference. Pass std::optional\<float> via
EvaluationInput so that any 'none' keywords are preserved. Use
Color::ConvertToColorSpaceForInterpolation() so that component keywords
are carried forward through any conversion. Drop the explicit conversion
from UnresolvedAlphaColor::Resolve() since it will be handled
downstream.

[1] https://drafts.csswg.org/css-color-5/#relative-syntax

Fixed: 569954059
Change-Id: Iae2788a09ac775b32790205176100eeafa95d567
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8515517
Reviewed-by: Kevin Babbitt \<kbabbitt@microsoft.com>
Commit-Queue: Fredrik Söderquist \<fs@opera.com>
Cr-Commit-Position: refs/heads/main@{#1714679}

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Attached file Notable wpt changes —

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 46 tests and 27 subtests

Status Summary

Firefox

OK : 1[GitHub] 46[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 31[GitHub] 11079[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 2[GitHub] 1075[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS: 16
FAIL: 17

Safari

OK : 1
PASS: 8
FAIL: 25

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: