Bug 14045 - Incorrect support for opacity, fill-opacity and stroke-opacity
Summary: Incorrect support for opacity, fill-opacity and stroke-opacity
Status: RESOLVED DUPLICATE of bug 12501
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nikolas Zimmermann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-09 00:31 PDT by Antoine Quint
Modified: 2007-08-07 19:17 PDT (History)
0 users

See Also:


Attachments
Reference image for test (3.90 KB, image/png)
2007-06-09 00:32 PDT, Antoine Quint
no flags Details
Reference image for test (3.88 KB, image/png)
2007-06-09 00:32 PDT, Antoine Quint
no flags Details
Reference image for test (4.14 KB, image/png)
2007-06-09 00:32 PDT, Antoine Quint
no flags Details
Reference image for test (3.99 KB, image/png)
2007-06-09 00:33 PDT, Antoine Quint
no flags Details
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 Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 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>.
Comment 1 Antoine Quint 2007-06-09 00:32:09 PDT
Created attachment 14910 [details]
Reference image for test
Comment 2 Antoine Quint 2007-06-09 00:32:26 PDT
Created attachment 14911 [details]
Reference image for test
Comment 3 Antoine Quint 2007-06-09 00:32:46 PDT
Created attachment 14912 [details]
Reference image for test
Comment 4 Antoine Quint 2007-06-09 00:33:00 PDT
Created attachment 14913 [details]
Reference image for test
Comment 5 Antoine Quint 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.
Comment 6 Eric Seidel (no email) 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. ;)
Comment 7 Nikolas Zimmermann 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

Comment 8 Nikolas Zimmermann 2007-08-07 19:17:15 PDT

*** This bug has been marked as a duplicate of 12501 ***