commit 2a6b40773664cfcefa146e847c3bc01a5b049829 parent b46e7fccbc400505242f91c13fec2aacd8827b57 Author: Seokho Song <seokho@chromium.org> Date: Wed, 15 Oct 2025 08:59:16 +0000 Bug 1993992 [wpt PR 55388] - Remove to* functions in CSSColorValue, a=testonly Automatic update from web-platform-tests Remove to* functions in CSSColorValue Due to the CSSWG decided [1] to remove the following functions: 1. toRGB() 2. toHSL() 3. toHWB() 4. ...and unimplemented functions like toGray(). Then, the 'to' function has been removed in [2] [3]. Therefore, Remove the functions in CSSColorValue and related test cases. Note: the APIs are behind the experimental flag "CSSColorTypedOM". [1] https://github.com/w3c/css-houdini-drafts/commit/5a1663db3f9c36ffa7b2013afdd345e98ae03d5e [2] https://github.com/w3c/css-houdini-drafts/issues/1070 [3] https://www.w3.org/TR/css-typed-om-1/#colorvalue-objects Fixed: 434207740 Change-Id: Ifedad6e9d1559020f9c04fa3020e49cc0171cd18 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7031443 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Seokho Song <seokho@chromium.org> Cr-Commit-Position: refs/heads/main@{#1528860} -- Update `fill-and-stroke-styles` source -- wpt-commits: 1d2c2b63981f34ed2ea3f60c9900fccb1350b9b2, a3c59df160bb91e36fb776f0992611d8ce0499ad wpt-pr: 55388 Diffstat:
5 files changed, 0 insertions(+), 30 deletions(-)
diff --git a/testing/web-platform/tests/html/canvas/element/fill-and-stroke-styles/2d.fillStyle.CSSHSL.html b/testing/web-platform/tests/html/canvas/element/fill-and-stroke-styles/2d.fillStyle.CSSHSL.html @@ -35,11 +35,6 @@ _addTest(function(canvas, ctx) { ctx.fillRect(0, 0, 100, 50); _assertPixel(canvas, 50,25, 0,255,255,255); - ctx.fillStyle = new CSSRGB(1, 0, 1).toHSL(); - _assertSame(ctx.fillStyle, '#ff00ff', "ctx.fillStyle", "'#ff00ff'"); - ctx.fillRect(0, 0, 100, 50); - _assertPixel(canvas, 50,25, 255,0,255,255); - color.h = CSS.deg(120); color.s = 1; color.l = 0.5; diff --git a/testing/web-platform/tests/html/canvas/element/fill-and-stroke-styles/2d.fillStyle.CSSRGB.html b/testing/web-platform/tests/html/canvas/element/fill-and-stroke-styles/2d.fillStyle.CSSRGB.html @@ -45,11 +45,6 @@ _addTest(function(canvas, ctx) { ctx.fillRect(0, 0, 100, 50); _assertPixel(canvas, 50,25, 0,0,0,128); - ctx.fillStyle = new CSSHSL(CSS.deg(0), 1, 1).toRGB(); - _assertSame(ctx.fillStyle, '#ffffff', "ctx.fillStyle", "'#ffffff'"); - ctx.fillRect(0, 0, 100, 50); - _assertPixel(canvas, 50,25, 255,255,255,255); - color.alpha = 1; color.g = 1; ctx.fillStyle = color; diff --git a/testing/web-platform/tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.CSSHSL.html b/testing/web-platform/tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.CSSHSL.html @@ -36,11 +36,6 @@ t.step(function() { ctx.fillRect(0, 0, 100, 50); _assertPixel(canvas, 50,25, 0,255,255,255); - ctx.fillStyle = new CSSRGB(1, 0, 1).toHSL(); - _assertSame(ctx.fillStyle, '#ff00ff', "ctx.fillStyle", "'#ff00ff'"); - ctx.fillRect(0, 0, 100, 50); - _assertPixel(canvas, 50,25, 255,0,255,255); - color.h = CSS.deg(120); color.s = 1; color.l = 0.5; diff --git a/testing/web-platform/tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.CSSRGB.html b/testing/web-platform/tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.CSSRGB.html @@ -46,11 +46,6 @@ t.step(function() { ctx.fillRect(0, 0, 100, 50); _assertPixel(canvas, 50,25, 0,0,0,128); - ctx.fillStyle = new CSSHSL(CSS.deg(0), 1, 1).toRGB(); - _assertSame(ctx.fillStyle, '#ffffff', "ctx.fillStyle", "'#ffffff'"); - ctx.fillRect(0, 0, 100, 50); - _assertPixel(canvas, 50,25, 255,255,255,255); - color.alpha = 1; color.g = 1; ctx.fillStyle = color; diff --git a/testing/web-platform/tests/html/canvas/tools/yaml/fill-and-stroke-styles.yaml b/testing/web-platform/tests/html/canvas/tools/yaml/fill-and-stroke-styles.yaml @@ -2289,11 +2289,6 @@ ctx.fillRect(0, 0, 100, 50); @assert pixel 50,25 == 0,0,0,128; - ctx.fillStyle = new CSSHSL(CSS.deg(0), 1, 1).toRGB(); - @assert ctx.fillStyle === '#ffffff'; - ctx.fillRect(0, 0, 100, 50); - @assert pixel 50,25 == 255,255,255,255; - color.alpha = 1; color.g = 1; ctx.fillStyle = color; @@ -2319,11 +2314,6 @@ ctx.fillRect(0, 0, 100, 50); @assert pixel 50,25 == 0,255,255,255; - ctx.fillStyle = new CSSRGB(1, 0, 1).toHSL(); - @assert ctx.fillStyle === '#ff00ff'; - ctx.fillRect(0, 0, 100, 50); - @assert pixel 50,25 == 255,0,255,255; - color.h = CSS.deg(120); color.s = 1; color.l = 0.5;