View Single Post
Old Yesterday, 11:13 PM   #37
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,849
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
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.

Last edited by RbnJrg; Yesterday at 11:20 PM.
RbnJrg is online now   Reply With Quote