Quote:
Originally Posted by KevinH
This is so strange. I can not see why the .myCustomFilter class version fails and the other one works.
|
I also haven't been able to find the reason why one filter works and the other doesn't. I tried applying it to .png images (filters work on any type of image: SVG, PNG, JPG, etc.) and got the same result: one filter is applied and the other isn't when the filter is defined in a .css sheet.
Quote:
Your original example when unpacked from the epub will not work straight up in Safari either.
|
Yes, Safari since always has had serious issues with rendering SVG filters. So I'm not surprised this filter doesn't work there.
Quote:
So my guess this style attribute filter approach will only work with a limited number of web browsers as well as limited epub3 ebook e-readers.
|
Fortunately, the vast majority of epub3 e-readers are based on Readium/Webkit and so far seem to support this kind of complex SVG filters quite well.