Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 383533f3bda83e8e953a5b7a1c2557d9bcd790d4
https://github.com/WebKit/WebKit/commit/383533f3bda83e8e953a5b7a1c2557d9bcd790d4
Author: Sam Weinig <[email protected]>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M LayoutTests/fast/css/color-achromatic-epsilon.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-none-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-powerless-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-relative-color-expected.txt
M Source/WebCore/css/values/color/CSSRelativeAlphaColorResolver.cpp
M Source/WebCore/css/values/color/CSSRelativeColorResolver.h
Log Message:
-----------
Support resolving "none" values to non-calc/explicit symbols in relative
color syntax expressions
https://bugs.webkit.org/show_bug.cgi?id=324903
Reviewed by Darin Adler.
When resolving non-calc explicit symbols usage in a relative color expression
we now preserve none values from the origin color.
"The component keywords return a <number>, or none"
- https://drafts.csswg.org/css-color-5/#relative-syntax
A few test cases in the WPT test
css/css-color/parsing/color-computed-relative-color.html
that previously passed now fail due to still testing the old conversion to 0
behavior.
Updating those tests will be done in a separate change.
* LayoutTests/fast/css/color-achromatic-epsilon.html:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-none-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-powerless-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-relative-color-expected.txt:
* Source/WebCore/css/values/color/CSSRelativeAlphaColorResolver.cpp:
* Source/WebCore/css/values/color/CSSRelativeColorResolver.h:
Canonical link: https://commits.webkit.org/321724@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications