Skip to content

Commit

Permalink
REGRESSION (278112@main): [ MacOS iOS ] TestWebKitAPI.Color.P3Convers…
Browse files Browse the repository at this point in the history
…ionToSRGB is a consistent failure

https://bugs.webkit.org/show_bug.cgi?id=273497

Reviewed by Tim Nguyen.

Update results to account for change in gamut mapping from CSS gamut mapping to clipping.

* Tools/TestWebKitAPI/Tests/WebCore/ColorTests.cpp:
(TestWebKitAPI::TEST(Color, P3ConversionToSRGB)):

Canonical link: https://commits.webkit.org/278226@main
  • Loading branch information
weinig authored and Sam Weinig committed May 1, 2024
1 parent 6533667 commit a5997b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/TestWebKitAPI/Tests/WebCore/ColorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ TEST(Color, P3ConversionToSRGB)
Color p3Color { DisplayP3<float> { 1.0, 0.5, 0.25, 0.75 } };
auto sRGBAColor = p3Color.toColorTypeLossy<SRGBA<float>>().resolved();
EXPECT_FLOAT_EQ(sRGBAColor.red, 1.0f);
EXPECT_FLOAT_EQ(sRGBAColor.green, 0.50120097f);
EXPECT_FLOAT_EQ(sRGBAColor.blue, 0.2616162f);
EXPECT_FLOAT_EQ(sRGBAColor.green, 0.46253288f);
EXPECT_FLOAT_EQ(sRGBAColor.blue, 0.14912745f);
EXPECT_FLOAT_EQ(sRGBAColor.alpha, 0.75f);
}

Expand Down

0 comments on commit a5997b3

Please sign in to comment.