Summary: | text-shadow is not drawn for text with transparent colour | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | nemo <bugs> | ||||||
Component: | CSS | Assignee: | mitz | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | hyatt, lea, mitz, simon.fraser | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
URL: | http://m8y.org/tmp/testcase67.xhtml | ||||||||
Attachments: |
|
Description
nemo
2008-10-04 15:14:45 PDT
BTW. A workaround is: http://m8y.org/tmp/testcase68.xhtml However this is kind of silly since it makes the text unselectable and complicates manipulation. http://m8y.org/tmp/testcase72.xhtml The workaround applied to variant of original bug report URL. Interestingly, I see that the svg "flames" also have a bug in Safari. Seems to be some "damage" bug related to repaint and display: none; I will test that in latest webkit and perhaps file another bug. Created attachment 25842 [details]
Testcase
See this thread: <http://markmail.org/message/y3j2dvizo2o6tybu> re: comment #4 cool, don't know if my complaining about it inspired his thread, but the dates are pretty close. I'll fetch a latest nightly and see if, by any chance, it has been fixed. I don't believe it has been fixed. I looked into it a little; I think not drawing shadows for transparent text is a CG behavior which we'll have to work around. See also: http://nicewebtype.com/notes/2009/07/12/rgba-text-shadow-in-safari-firefox/ In general, the alpha set on the text is "inherited" by the shadow. Created attachment 32818 [details]
Make shadows independent of fill opacity
One issue with this change is that it makes it impossible to have only the outline of text cast a shadow (which is currently possible by specifying -webkit-text-stroke: 1px black; color: transparent;).
Comment on attachment 32818 [details]
Make shadows independent of fill opacity
r=me
*** Bug 28861 has been marked as a duplicate of this bug. *** |