Closed Bug 1860661 Opened 8 months ago Closed 8 months ago

[css-color] `none` values should be used as 0 during conversion.

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: tlouw, Assigned: tlouw)

Details

Attachments

(1 file)

Currently in this wpt test:

https://searchfox.org/mozilla-central/rev/e4afef5d3ff67781dc1377912344694f3cf3a226/testing/web-platform/tests/css/css-color/parsing/color-computed-color-mix-function.html

there is an assertion that color-mix(in hsl, hsl(none none none), hsl(none none none)) serialized to color(srgb none none none), which is incorrect.

During conversion the none values should be dealt with as 0's, so the resulting serialization should be color(srgb 0 0 0)

See: https://github.com/web-platform-tests/wpt/issues/42677

This fixes a test where serializing none values should be treated as
0 for hsl and hwb.

See: https://github.com/web-platform-tests/wpt/issues/42677

Assignee: nobody → tlouw
Status: NEW → ASSIGNED
Pushed by tlouw@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5ff1ceab2635
none values should be treated as 0 during conversion r=jwatt
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42707 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: