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•1 year ago
|
||
Turns out this is not true and I was missing a section in the spec:
Assignee | ||
Comment 2•1 year 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•1 year ago
|
Assignee | ||
Comment 3•1 year 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•1 year 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•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
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
Comment 7•1 year ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Description
•