[Webkit-unassigned] [Bug 42228] New: SVG masks are in the wrong colour space in all non-CG platforms

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 13 19:11:50 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42228

           Summary: SVG masks are in the wrong colour space in all non-CG
                    platforms
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P4
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: anicolao at chromium.org
                CC: zimmermann at kde.org, krit at webkit.org,
                    anicolao at chromium.org


Created an attachment (id=61455)
 --> (https://bugs.webkit.org/attachment.cgi?id=61455)
example SVG file that renders incorrectly on chromium

The ImageBuffer instantiated for SVG masks is supposed to be in LinearRGB but on non-CG platforms the colour space conversion is never done so the colours do not come out correct. This SVG example shows two grey squares with dark grey circles that should be identical but only render correctly on CG, but not on chromium.


<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<mask id="mask">
    <rect x="0" y="0" width="140" height="140" fill="rgb(0%,90%,0%)"/>
    <circle cx="70" cy="70" r="40" fill="rgb(0%, 99%, 0%)"/>
</mask>
</defs>
<rect x="20" y="20" width="100" height="100" style="fill:black;mask:url(#mask)"/>

<!-- reference image - should be identical to above -->
<rect x="150" y="20" width="100" height="100" fill="rgb(111,111,111)"/>
<circle cx="200" cy="70" r="40" fill="rgb(76,76,76)"/>
</svg>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list