[Webkit-unassigned] [Bug 51869] Shadows are not drawn when filling a rect with a gradient fillStyle on Mac and Chromium-Mac

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 4 12:05:34 PST 2011


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





--- Comment #6 from Helder Correia <helder at sencha.com>  2011-01-04 12:05:34 PST ---
(In reply to comment #5)
> The canvas spec implies that the opacity of the shadow should follow the alpha of the content being drawn. In my testing, CG does this just fine. Can you attach a testcase that shows the failure?

Go to http://ie.microsoft.com/testdrive/Graphics/CanvasPad/ and click on shadows. Then replace all the code with:

ctx.shadowOffsetX = 40;  
ctx.shadowOffsetY = 40; 
ctx.shadowBlur = 10;  
ctx.shadowColor = "rgba(255, 0, 0, 0.5)";

var gradient = ctx.createLinearGradient(0, 0, 250, 0);
gradient.addColorStop(0, 'rgba(0, 0, 200, 0.3)');
gradient.addColorStop(1, 'rgba(200, 200, 200, 0.9)');

ctx.fillStyle = gradient;
ctx.shadowColor = "rgba(255, 0, 0, 1)";
ctx.fillRect(0, 0, 340, 200);

Finally click to preview. Without the patch, no shadow is shown. With the patch, the shadow does not follow the gradient's alpha. Same happens with the test included in the patch.

-- 
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