Skip to content

Commit

Permalink
Bug 1864055 [wpt PR 43065] - Resolve missing components during colors…
Browse files Browse the repository at this point in the history
…pace conversion, a=testonly

Automatic update from web-platform-tests
Resolve missing components during colorspace conversion

https://csswg.sesse.net/css-color-4/#missing:

"""
For handling of missing component in color interpolation, see § 12.2
Interpolating with Missing Components.

For all other purposes, a missing component behaves as a zero value, in
the appropriate unit for that component: 0, 0%, or 0deg. This includes
rendering the color directly, converting it to another color space,
performing computations on the color component values, etc.
"""

Remaining color mix test failures may be invalid:
web-platform-tests/wpt#42940
web-platform-tests/wpt#43180

Bug: 1495694, 1445171
Change-Id: I0ecd334b595c9c1ff4d3cb2f655176dd3b3eea16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5017402
Reviewed-by: Yi Xu <yiyixchromium.org>
Commit-Queue: Aaron Krajeski <aaronhkchromium.org>
Cr-Commit-Position: refs/heads/main{#1225694}

--

wpt-commits: 6e624cc9cb5dcba7a7e940aa51ea025ebe24a7e7
wpt-pr: 43065

UltraBlame original commit: 2b12ef1a74b23ed23a261ad7102f8fa5e96afa62
  • Loading branch information
marco-c committed Nov 30, 2023
1 parent f7070f6 commit ca2960f
Showing 1 changed file with 134 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2360,6 +2360,37 @@
none
'
.
Missing
components
are
resolved
to
zero
during
color
space
conversion
.
/
/
https
:
/
/
drafts
.
csswg
.
org
/
css
-
color
-
4
/
#
missing
fuzzy_test_computed_color
(
rgb
Expand All @@ -2373,9 +2404,9 @@
color
(
srgb
none
none
none
0
0
0
)
)
;
Expand All @@ -2394,9 +2425,9 @@
color
(
srgb
none
none
none
0
0
0
/
none
)
Expand All @@ -2421,7 +2452,7 @@
0
.
2
none
0
)
)
;
Expand All @@ -2446,7 +2477,7 @@
0
.
2
none
0
)
)
;
Expand Down Expand Up @@ -2511,7 +2542,7 @@
0
.
4
none
0
/
0
.
Expand Down Expand Up @@ -2559,25 +2590,6 @@
)
)
;
/
/
FIXME
:
Clarify
with
spec
editors
if
'
none
'
should
pass
through
to
the
constants
.
fuzzy_test_computed_color
(
rgb
Expand Down Expand Up @@ -4059,6 +4071,37 @@
none
'
.
Missing
components
are
resolved
to
zero
during
color
space
conversion
.
/
/
https
:
/
/
drafts
.
csswg
.
org
/
css
-
color
-
4
/
#
missing
fuzzy_test_computed_color
(
hsl
Expand All @@ -4072,9 +4115,9 @@
color
(
srgb
none
none
none
0
0
0
)
)
;
Expand All @@ -4093,9 +4136,9 @@
color
(
srgb
none
none
none
0
0
0
/
none
)
Expand All @@ -4116,7 +4159,7 @@
srgb
0
0
none
0
)
)
;
Expand All @@ -4137,7 +4180,7 @@
srgb
0
0
none
0
)
)
;
Expand Down Expand Up @@ -4185,7 +4228,9 @@
color
(
srgb
none
0
.
6
0
.
2
Expand Down Expand Up @@ -4222,7 +4267,7 @@
srgb
0
0
none
0
/
0
.
Expand Down Expand Up @@ -4294,7 +4339,9 @@
color
(
srgb
none
0
.
6
0
.
4
Expand All @@ -4308,25 +4355,6 @@
)
)
;
/
/
FIXME
:
Clarify
with
spec
editors
if
'
none
'
should
pass
through
to
the
constants
.
fuzzy_test_computed_color
(
hsl
Expand Down Expand Up @@ -5868,6 +5896,37 @@
none
'
.
Missing
components
are
resolved
to
zero
during
color
space
conversion
.
/
/
https
:
/
/
drafts
.
csswg
.
org
/
css
-
color
-
4
/
#
missing
fuzzy_test_computed_color
(
hwb
Expand All @@ -5881,9 +5940,9 @@
color
(
srgb
none
none
none
1
0
0
)
)
;
Expand All @@ -5902,9 +5961,9 @@
color
(
srgb
none
none
none
1
0
0
/
none
)
Expand All @@ -5929,7 +5988,7 @@
0
.
2
none
1
)
)
;
Expand All @@ -5954,7 +6013,7 @@
0
.
2
none
1
)
)
;
Expand Down Expand Up @@ -6002,7 +6061,9 @@
color
(
srgb
none
0
.
6
0
.
2
Expand Down Expand Up @@ -6041,7 +6102,9 @@
.
2
1
none
0
.
2
/
0
.
Expand Down Expand Up @@ -6113,7 +6176,9 @@
color
(
srgb
none
0
.
5
0
.
2
Expand All @@ -6127,25 +6192,6 @@
)
)
;
/
/
FIXME
:
Clarify
with
spec
editors
if
'
none
'
should
pass
through
to
the
constants
.
fuzzy_test_computed_color
(
hwb
Expand Down

0 comments on commit ca2960f

Please sign in to comment.