[wpt-sync] Sync PR 63426 - Preserve 'none' keywords across relative color resolution
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
98.06 KB,
text/plain
|
Details |
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}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=102748
| Assignee | ||
Comment 2•1 month ago
|
||
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)
https://hg.mozilla.org/mozilla-central/rev/ef6ff5f181c5
https://hg.mozilla.org/mozilla-central/rev/86541d2144d0
Description
•