Bug 29563 - [Qt] -webkit-box-shadow property does not work in Qt WebKit
Summary: [Qt] -webkit-box-shadow property does not work in Qt WebKit
Status: RESOLVED DUPLICATE of bug 46327
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P3 Normal
Assignee: QtWebKit Unassigned
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2009-09-21 08:11 PDT by Tor Arne Vestbø
Modified: 2010-11-08 10:39 PST (History)
4 users (show)

See Also:


Attachments
blur shadow for boxes (7.62 KB, patch)
2009-11-18 06:07 PST, Dirk Schulze
no flags Details | Formatted Diff | Diff
Test case (263 bytes, text/html)
2010-01-19 09:41 PST, Jocelyn Turcotte
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tor Arne Vestbø 2009-09-21 08:11:32 PDT
This bug report originated from Nokia internal issue QT-1729

--- Comments ---

Function
webkit

Version
4.5.1

Platform
Linux

Platform details
This bug also occurs on Windows XP.

Compilers
GCC

Compiler details

Subject
-webkit-box-shadow property does not work in Qt WebKit

Steps to reproduce / test case
1) Save the following HTML snippet to a file.
2) Browse the file with Firefox 3.5 or Safari 3.2.
3) Browse the file with the Qt demo browser.

Qt WebKit does not render the drop shadow.
The other browsers produce the expected behavior.

--- cut here ---
<html><body>

<div style="border: 1px solid #808080;
-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
width: 300px; height: 200px;">
<br><center>This box should have a shadow.</center>
</div>

</body></html>

More information
The included WebKit source code has references to this property.
The feature was added in WebKit in 2007, so it seems that it should be functional.
Comment 1 Dirk Schulze 2009-11-18 06:07:30 PST
Created attachment 43432 [details]
blur shadow for boxes

This is a basic implementation for a _blurred_ box-shadow for simple rects. It needs more improvement. I miss a masking operation on Qt that other graphic-librarys provide (like cairo_mask_surface()). I just could find a 1bit mask for QPixmap. :-/ Thats why the current version needs to blur all channels, not just alpha.

This is just an initial Patch and shouldn't be reviewed or landed.
Comment 2 Jocelyn Turcotte 2010-01-19 09:41:21 PST
Created attachment 46919 [details]
Test case
Comment 3 Jocelyn Turcotte 2010-01-19 09:44:49 PST
Works for me in 4.6, but the shadow is plain instead of blured.
Comment 4 Luis Gustavo S. Barreto 2010-10-22 05:22:58 PDT
Tested on Qt 4.7: The shadow is plain instead of blured
Comment 5 Helder Correia 2010-11-07 20:33:36 PST
I think this can be closed.  Please see https://bugs.webkit.org/show_bug.cgi?id=34479 .
Comment 6 Antonio Gomes 2010-11-08 10:39:25 PST

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