Incorrect handling of zero-length linear gradients in 2d canvas
Categories
(Core :: Graphics: Canvas2D, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | affected |
People
(Reporter: bzbarsky, Unassigned)
References
Details
(Keywords: parity-chrome, parity-safari)
See the 2d.gradient.interpolate.zerosize.fill.html web platform test, and some other tests at https://wpt.fyi/results/2dcontext/fill-and-stroke-styles?label=master&product=chrome%5Bexperimental%5D&product=edge&product=firefox%5Bexperimental%5D&product=safari%5Bexperimental%5D&aligned&q=%21firefox%3Apass+%21firefox%3Aok+%28chrome%3Apass%7Cchrome%3Aok%29+%28edge%3Apass%7Cedge%3Aok%29+%28safari%3Apass%7Csafari%3Aok%29
https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createlineargradient says:
If x0 = x1 and y0 = y1, then the linear gradient must paint nothing.
but we don't seem to be doing that as far as I can tell.
Updated•7 years ago
|
Updated•7 years ago
|
Comment 1•6 years ago
|
||
Do these tests need updating or is this now working? The link in comment 0 appears to show these tests as passing now
| Reporter | ||
Comment 2•6 years ago
|
||
Looks like bug 1539026 might have fixed this.
Description
•