Bug 20933

Summary: Canvas fillText() using a linear or radial gradient for the fill style incorrectly renders the shadow
Product: WebKit Reporter: John Engelhart <john.engelhart>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mdelaney7, mlamb1976, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Simple .html that demonstrates the rendering problem none

John Engelhart
Reported 2008-09-19 00:39:53 PDT
The subject says it all. Mac OS X: 10.5.4 Safari: Version 4.0 (5528.1, r36519) Will attach a .html that clearly demonstrates the bug.
Attachments
Simple .html that demonstrates the rendering problem (2.63 KB, text/html)
2008-09-19 00:43 PDT, John Engelhart
no flags
John Engelhart
Comment 1 2008-09-19 00:43:53 PDT
Created attachment 23559 [details] Simple .html that demonstrates the rendering problem This uses an inline javascript code snippet to render some text in a canvas using .fillText(). The only difference between the PASS and FAIL canvases displayed, other than the cosmetic shadow color, is the FAIL canvas uses a radial gradient for the fillText() fillStyle.
John Engelhart
Comment 2 2008-09-19 00:55:26 PDT
I just double checked the bug report and realized it might not be clear exactly what the problem is: The shadow for both canvases are set to the exact same thing (other than the color): X and Y offset of +1, and a blur of 0px. The FAIL convas obviously has an offset of 0, 0, not the expected 1, 1. When using a radial gradient fill, no shadow offset values 'stick', it's always reset to 0, 0. vvvvvv UPDATE: This also fails for linear gradients. ^^^^^^
Michael Lamb
Comment 3 2010-08-19 12:47:59 PDT
Simon Fraser (smfr)
Comment 4 2011-06-02 20:55:11 PDT
*** This bug has been marked as a duplicate of bug 15266 ***
Note You need to log in before you can comment on or make changes to this bug.