Closed Bug 1812548 Opened 1 year ago Closed 1 year ago

Remove invalid wpt tests for `color()` with missing components

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: tlouw, Assigned: tlouw)

References

Details

Attachments

(1 file)

According to the specification, missing components are not allowed and the tests assume that those components are set to 0 if missing.

<predefined-rgb-params> = <predefined-rgb> [ <number> | <percentage> | none ]{3}

https://w3c.github.io/csswg-drafts/css-color-4/#color-function

Turns out this is not true and I was missing a section in the spec:

https://w3c.github.io/csswg-drafts/css-color-4/#missing

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Blocks: css-color-4

According to the specification, missing components in the color function
should result in an invalid color. This patch removes those tests from
valid checks and adds them to the invalid checks.

https://w3c.github.io/csswg-drafts/css-color-4/#missing

Issue clarified here: https://github.com/w3c/csswg-drafts/issues/8362

color() function with missing user-specified components is indeed a bug and needs to be fixed.

Assignee: nobody → tlouw
Attachment #9314266 - Attachment description: WIP: Bug 1812548 - Missing components in color() function is invalid r=emilio,#layout-reviewers → Bug 1812548 - Missing components in color() function is invalid r=emilio,#layout-reviewers
Attachment #9314266 - Attachment description: Bug 1812548 - Missing components in color() function is invalid r=emilio,#layout-reviewers → WIP: Bug 1812548 - Missing components in color() function is invalid r=emilio,#layout-reviewers
Attachment #9314266 - Attachment description: WIP: Bug 1812548 - Missing components in color() function is invalid r=emilio,#layout-reviewers → Bug 1812548 - Missing components in color() function is invalid r=emilio,#layout-reviewers
Pushed by tlouw@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/279c04f1ec04
Missing components in color() function is invalid r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38258 for changes under testing/web-platform/tests
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 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: