Bug 285546
| Summary: | [css-images-4] Allow gradients with a single color stop and 0-1 positions | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | jsnkuhn |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ntim |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
jsnkuhn
Currently to create single color images with CSS gradients devs have to include 2 color stops:
linear-gradient(red 0 100%)
linear-gradient(red 0 0)
These stop values have no real meaning in this case and can be anything when there is a single color. This change allows a color with no position value:
linear-gradient(red)
CSS working group issue:
https://github.com/w3c/csswg-drafts/issues/10092
Firefox implementation bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1900530
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Tim Nguyen (:ntim)
*** This bug has been marked as a duplicate of bug 285413 ***