Bug 64040 - [Qt] -webkit-mask-image applies color from the mask to the masked image with the native render system on OSX
Summary: [Qt] -webkit-mask-image applies color from the mask to the masked image with ...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 15:42 PDT by Josh Faust
Modified: 2014-02-03 03:18 PST (History)
1 user (show)

See Also:


Attachments
Example code and html which demonstrates the behavior (11.53 KB, application/x-gzip)
2011-09-01 15:01 PDT, Josh Faust
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Faust 2011-07-06 15:42:58 PDT
This is using Qt 4.7.3 (QtWebKit 2.1) built from source, on OSX 10.6. I'm currently cloning the qtwebkit-2.2-beta1 branch from gitorious, but it's been a couple hours and looks like it'll be a few more, and even if this is fixed it would be nice to have it on record (I didn't find anything when searching).

Using -webkit-mask-image seems to apply the color in the mask somehow to the thing it's masking. I haven't figured out yet exactly what it's doing with the color, but it's not just using the alpha value like it should. The raster render system works properly.

The wrong version has a black circle with a background gradient going from black to white. The correct version should have a blue circle that fades out towards the bottom, with a white background.

The attached code demonstrates this -- if you open masking.html in chrome or safari, you can see the correct behavior. You can also see the correct behavior if you pass "-graphicssystem raster" to the generated executable.

Linux and Windows both work correctly.
Comment 1 Josh Faust 2011-09-01 15:01:17 PDT
Created attachment 106037 [details]
Example code and html which demonstrates the behavior
Comment 2 Josh Faust 2011-09-01 15:03:22 PDT
Forgot to add the attachment before, it's there now. I was never able to successfully build qtwebkit-2.2 standalone so I don't know if this problem still exists. We've removed our use of masking for other performance reasons so I haven't tried it with the Qt 4.8 beta either.
Comment 3 Jocelyn Turcotte 2014-02-03 03:18:10 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.