Remove invalid wpt tests for `color()` with missing components
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
| 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
| Assignee | ||
Comment 1•3 years ago
|
||
Turns out this is not true and I was missing a section in the spec:
| Assignee | ||
Comment 2•3 years ago
|
||
This bug requires some additional investigation.
Issue on the spec: https://github.com/w3c/csswg-drafts/issues/8362
Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1410200
WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=251152
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
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.
| Assignee | ||
Comment 4•3 years ago
|
||
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.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 7•3 years ago
|
||
| bugherder | ||
Description
•