RESOLVED DUPLICATE of bug 12501 14045
Incorrect support for opacity, fill-opacity and stroke-opacity
https://bugs.webkit.org/show_bug.cgi?id=14045
Summary Incorrect support for opacity, fill-opacity and stroke-opacity
Antoine Quint
Reported 2007-06-09 00:31:26 PDT
Current WebKit nightlies fail to support the various opacity properties properly, resulting in the following incorrect behaviors: - a <rect> with opacity="0.5" is actually implemented as fill-opacity="0.5" and stroke-opacity="0.5", instead of compositing fill and stroke together first and then applying opacity on the whole painted shape - gradient fills and strokes do not take into account fill-opacity and stroke-opacity values. This may be related to bug <a href="http://bugs.webkit.org/show_bug.cgi?id=12501">12501</a>.
Attachments
Reference image for test (3.90 KB, image/png)
2007-06-09 00:32 PDT, Antoine Quint
no flags
Reference image for test (3.88 KB, image/png)
2007-06-09 00:32 PDT, Antoine Quint
no flags
Reference image for test (4.14 KB, image/png)
2007-06-09 00:32 PDT, Antoine Quint
no flags
Reference image for test (3.99 KB, image/png)
2007-06-09 00:33 PDT, Antoine Quint
no flags
Testcase for fill-opacity, stroke-opacity, opacity as applied to solid and gradient fills and strokes (2.16 KB, image/svg+xml)
2007-06-09 00:36 PDT, Antoine Quint
no flags
Antoine Quint
Comment 1 2007-06-09 00:32:09 PDT
Created attachment 14910 [details] Reference image for test
Antoine Quint
Comment 2 2007-06-09 00:32:26 PDT
Created attachment 14911 [details] Reference image for test
Antoine Quint
Comment 3 2007-06-09 00:32:46 PDT
Created attachment 14912 [details] Reference image for test
Antoine Quint
Comment 4 2007-06-09 00:33:00 PDT
Created attachment 14913 [details] Reference image for test
Antoine Quint
Comment 5 2007-06-09 00:36:54 PDT
Created attachment 14914 [details] Testcase for fill-opacity, stroke-opacity, opacity as applied to solid and gradient fills and strokes This test case works fine in both Mozilla trunk and Opera 9.21. The first row is SVG and the second row are reference PNG images with the correct rendering.
Eric Seidel (no email)
Comment 6 2007-06-09 09:25:24 PDT
I'm not surprised by this bug at all. Our opacity handling has always been a bit shady... particularly due to the total lack of good test cases on the subject. ;)
Nikolas Zimmermann
Comment 7 2007-08-07 18:06:11 PDT
(In reply to comment #5) > Created an attachment (id=14914) [edit] > Testcase for fill-opacity, stroke-opacity, opacity as applied to solid and > gradient fills and strokes > > This test case works fine in both Mozilla trunk and Opera 9.21. The first row > is SVG and the second row are reference PNG images with the correct rendering. > Hi Antoine, I'm finally on this bug report again. Could you also create a testcase for patterns, that would be excellent.. Greetings, Niko
Nikolas Zimmermann
Comment 8 2007-08-07 19:17:15 PDT
*** This bug has been marked as a duplicate of 12501 ***
Note You need to log in before you can comment on or make changes to this bug.