WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
15265
Canvas shadows not rendered unless shadowBlur/OffsetX/OffsetY set
https://bugs.webkit.org/show_bug.cgi?id=15265
Summary
Canvas shadows not rendered unless shadowBlur/OffsetX/OffsetY set
Philip Taylor
Reported
2007-09-23 14:53:26 PDT
When shadowColor is set to some colour and a shape is rendered, the shadow is not drawn iff shadowBlur = shadowOffsetX = shadowOffsetY = 0.
Attachments
test case
(425 bytes, text/html)
2007-09-23 14:56 PDT
,
Philip Taylor
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Philip Taylor
Comment 1
2007-09-23 14:56:25 PDT
Created
attachment 16363
[details]
test case This should draw the shadow first, then draw the rectangle on top, with the XOR compositing resulting in a transparent canvas. If you set shadowBlur or shadowOffset{X,Y} before drawing the shadow, then it works as expected.
Eric Seidel (no email)
Comment 2
2008-09-30 20:30:58 PDT
What does the HTML5 spec say about this?
Andreas Kling
Comment 3
2010-08-21 05:39:12 PDT
Quoth HTML5: "Shadows are only drawn if the opacity component of the alpha component of the color of shadowColor is non-zero and either the shadowBlur is non-zero, or the shadowOffsetX is non-zero, or the shadowOffsetY is non-zero."
http://www.whatwg.org/specs/web-apps/current-work/#shadows
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug