Bug 43156
| Summary: | Blur filter does not work on SVG + XHTML | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | chetankjain <chetankjain> | 
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> | 
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ariya.hidayat, chetankjain, kling, krit, sheuer, zimmermann | 
| Priority: | P3 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | All | ||
| Bug Depends on: | |||
| Bug Blocks: | 68469 | ||
          chetankjain
          
          
          
          
        
        
      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>
    | Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. | 
          chetankjain
          
          
          
          
        
        
      If the svg file already has the svg blur filter, webkit renders it fine, but the above example fails!
    
          Stephen Heuer
          
          
          
          
        
        
      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.
    
          Ariya Hidayat
          
          
          
          
        
        
      Does not work in Opera 11.
    
          Ariya Hidayat
          
          
          
          
        
        
      This is definitely not Qt specific.
    
          Dirk Schulze
          
          
          
          
        
        
      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.
    
          Dirk Schulze
          
          
          
          
        
        
      It does work since we support CSS Filters