RESOLVED DUPLICATE of bug 46327 29563
[Qt] -webkit-box-shadow property does not work in Qt WebKit
https://bugs.webkit.org/show_bug.cgi?id=29563
Summary [Qt] -webkit-box-shadow property does not work in Qt WebKit
Tor Arne Vestbø
Reported 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.
Attachments
blur shadow for boxes (7.62 KB, patch)
2009-11-18 06:07 PST, Dirk Schulze
no flags
Test case (263 bytes, text/html)
2010-01-19 09:41 PST, Jocelyn Turcotte
no flags
Dirk Schulze
Comment 1 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.
Jocelyn Turcotte
Comment 2 2010-01-19 09:41:21 PST
Created attachment 46919 [details] Test case
Jocelyn Turcotte
Comment 3 2010-01-19 09:44:49 PST
Works for me in 4.6, but the shadow is plain instead of blured.
Luis Gustavo S. Barreto
Comment 4 2010-10-22 05:22:58 PDT
Tested on Qt 4.7: The shadow is plain instead of blured
Helder Correia
Comment 5 2010-11-07 20:33:36 PST
I think this can be closed. Please see https://bugs.webkit.org/show_bug.cgi?id=34479 .
Antonio Gomes
Comment 6 2010-11-08 10:39:25 PST
*** This bug has been marked as a duplicate of bug 46327 ***
Note You need to log in before you can comment on or make changes to this bug.