Below is my .xhtml file, which is correctly rendered and blurred in Firefox browser, but only shows original SVG without any blur filter when I load it in QWebView. My version is the one with Qt 4.7 beta 2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> <body> <object type="image/svg+xml" style="border:none; width:270px; height:270px; background: white" data="tiger.svg"></object> <svg:svg> <svg:filter id="b15"> <svg:feGaussianBlur stdDeviation="15"/> </svg:filter> </svg:svg> </body> <style> object { filter:url(#b15); } </style> </html>
If the svg file already has the svg blur filter, webkit renders it fine, but the above example fails!
I have a system that applies a blur filter to miscellaneous divs on a page. It works in Firefox 4 beta, but not in any webkit based browsers. I imagine that is related to this bug.
Does not work in Opera 11.
This is definitely not Qt specific.
SVG Filters can only be applied on SVG objects IIRC. I know that Firefox supports masks, clippers and filters on any element in an XHTML document, but that is not specified by the W3C yet. There are open questions about the bounding box of an HTML element. Not sure if it will be specified like FF is doing it at all. I'd say this bug is a WONTFIX for now.
It does work since we support CSS Filters