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.
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.
Created attachment 46919 [details] Test case
Works for me in 4.6, but the shadow is plain instead of blured.
Tested on Qt 4.7: The shadow is plain instead of blured
I think this can be closed. Please see https://bugs.webkit.org/show_bug.cgi?id=34479 .
*** This bug has been marked as a duplicate of bug 46327 ***