Bug 53083 - SVG: "filter" style not applied to "div"s in xhtml "foreignObject"s
Summary: SVG: "filter" style not applied to "div"s in xhtml "foreignObject"s
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows Vista
: P1 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 06:42 PST by Berend-Jan Wever
Modified: 2014-05-12 06:04 PDT (History)
3 users (show)

See Also:


Attachments
Repro (600 bytes, image/svg+xml)
2011-01-25 06:42 PST, Berend-Jan Wever
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Berend-Jan Wever 2011-01-25 06:42:59 PST
Created attachment 80059 [details]
Repro

Chromium bug: http://code.google.com/p/chromium/issues/detail?id=70760

Repro:

<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg">
  <defs>
    <filter id="Gaussian_Blur">
      <feGaussianBlur in="SourceGraphic" stdDeviation="5"/>
    </filter>
  </defs>
  <g style="filter:url(#Gaussian_Blur)">
    <foreignObject x="0" y="0" width="100%" height="100%">
      <body xmlns="http://www.w3.org/1999/xhtml" style="margin:0px;padding:50px">
        <div style="border:10px solid red;width:30px;height:30px"></div>
        <span style="border:10px solid green;width:30px;height:30px"></span>
      </body>
    </foreignObject>
  </g>
</svg>

The red "div" element is not blurred, the green "span" element is.
Comment 1 Berend-Jan Wever 2011-01-25 09:59:37 PST
Note: a span with style="display:block;" will not get blurred either.
Comment 2 Berend-Jan Wever 2011-01-25 10:05:41 PST
Work-around: use <body style="display:inline-block;"> and the span and div are both blurred.
Comment 3 Dirk Schulze 2014-05-12 06:04:14 PDT
Works now