Skip to content

Commit 27f91a7

Browse files
committed
[css-color-4] Remove "specified hue" color interpolation method
https://bugs.webkit.org/show_bug.cgi?id=250968 rdar://104524288 Reviewed by Sam Weinig. It's no longer in the spec: w3c/csswg-drafts@10573c9 * LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-hsl-expected-mismatch.html: Removed. * LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-hsl.html: Removed. * LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-hwb-expected-mismatch.html: Removed. * LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-hwb.html: Removed. * LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-lch-expected-mismatch.html: Removed. * LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-lch.html: Removed. * LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-oklch-expected-mismatch.html: Removed. * LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-oklch.html: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-images/parsing/gradient-interpolation-method-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-images/parsing/gradient-interpolation-method-computed.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-images/parsing/gradient-interpolation-method-valid-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-images/parsing/gradient-interpolation-method-valid.html: * LayoutTests/platform/glib/TestExpectations: * Source/WebCore/css/CSSGradientValue.cpp: (WebCore::appendHueInterpolationMethod): * Source/WebCore/css/CSSValueKeywords.in: * Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp: (WebCore::CSSPropertyParserHelpers::consumeHueInterpolationMethod): * Source/WebCore/platform/graphics/ColorInterpolation.cpp: (WebCore::fixupHueComponentsPriorToInterpolation): * Source/WebCore/platform/graphics/ColorInterpolationMethod.cpp: (WebCore::serializationForCSS): (WebCore::operator<<): * Source/WebCore/platform/graphics/ColorInterpolationMethod.h: Canonical link: https://commits.webkit.org/259190@main
1 parent 139d1d0 commit 27f91a7

19 files changed

+7
-698
lines changed

LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-hsl-expected-mismatch.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-hsl.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-hwb-expected-mismatch.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-hwb.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-lch-expected-mismatch.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-lch.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-oklch-expected-mismatch.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

LayoutTests/fast/gradients/gradient-using-specified-hue-interpolation-method-oklch.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

LayoutTests/imported/w3c/web-platform-tests/css/css-images/parsing/gradient-interpolation-method-computed-expected.txt

Lines changed: 0 additions & 136 deletions
Large diffs are not rendered by default.

LayoutTests/imported/w3c/web-platform-tests/css/css-images/parsing/gradient-interpolation-method-computed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
}
9191

9292
for (const colorSpace of [ "hsl", "hwb", "lch", "oklch" ]) {
93-
for (const hueInterpolationMethod of [ "", " shorter hue", " longer hue", " increasing hue", " decreasing hue", " specified hue" ]) {
93+
for (const hueInterpolationMethod of [ "", " shorter hue", " longer hue", " increasing hue", " decreasing hue" ]) {
9494
const colorInterpolationMethod = `${colorSpace}${hueInterpolationMethod}`
9595
const colorInterpolationMethodResult = hueInterpolationMethod == " shorter hue" ? colorSpace : colorInterpolationMethod
9696

0 commit comments

Comments
 (0)