I wonder if it’s possible to apply svg filter to clipped html content. All demos I found have clipping and filtering separate.
Here’s an example: http://jsfiddle.net/B7593/1/. I want the yellow circle to drop a shadow.
Tried adding filter=url('#dropshadow') / style='filter:url(#dropshadow)' to circle / clipPath / div elements, but none of these worked.
I don’t think you can do it the way you’re approaching it – even if you could make the shadow a part of the clip, you wouldn’t see it when you applied the clip because none of the colour is retained, just the opacity of the pixels is used to determine what shows through. What will work (in Firefox at least), is to apply both the clip and the filter to content within the SVG like this:
Here’s a full example.