Quote:
Originally Posted by KevinH
So this is a bit of a nasty piece of code that should help improve Sigil!
|
Why nasty piece of code Kevin? But I have more for you and this time maybe it can help you to find the solution. Open the epub I attach; you'll see two others way to apply svg filters under epub.
The first way is by including the filter in body, as I do for the first image. Now, with the filter included in body, if I change the color there, then the change operates at once. Of course, this is not an economic way to include a svg filter because you need to include in every .xhtml file where you want to apply it.
The second way in by including it in the css stylesheet, inside a class. In this case, I created a class named ".myCustomFilter" and I defined the filter there. But when I apply the class, the filter is not working (watch the second image).
In the third image you see another svg filter, that I defined also in the css stylesheet and that filter works!! I don't know why one filter works and the other doesn't (they should work both). By in this case I think is not a bug of Sigil because I can't see the metal effect filter applied in no place (Chrome, Firefox, Thorium, etc.) when is defined in the css.