[Webkit-unassigned] [Bug 102654] Zero size gradient should paint nothing on canvas

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 1 22:05:48 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=102654





--- Comment #16 from Rashmi Shyamasundar <rashmi.s2 at samsung.com>  2013-01-01 22:07:48 PST ---
Webkit(checked on windows port) does not conform to SVG spec.
FireFox conforms to SVG spec. I used the below test to check the conformance to SVG spec - 

In the test - http://w3c-test.org/html/tests/approved/canvas/2d.gradient.interpolate.zerosize.fill.html , replace the _addTest function-definition with the below definition, to check conformance to SVG spec :

_addTest(function(canvas, ctx) {

ctx.fillStyle = 'blue';
ctx.fillRect(0, 0, 100, 50);

var g = ctx.createLinearGradient(50, 25, 50, 25); // zero-length line (undefined direction)
g.addColorStop(0, 'yellow');
g.addColorStop(1, 'rgb(0,255,0)');
ctx.fillStyle = g;
ctx.rect(0, 0, 100, 50);
ctx.fill();
_assertPixel(canvas, 40,20, 0,255,0,255, "40,20", "0,255,0,255");

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list