View Single Post
Old 09-01-2025, 03:56 PM   #28
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,917
Karma: 6240958
Join Date: Nov 2009
Device: many
This is an interesting test case for a number of issues it illustrates:

1. SourceUpdates for CSS and HTML for did not look for or update CSS filter properties with urls (had to add the property filter to the list of properties who may have url values). To see this rename Metal_Filter.svg in BookBrowser and see it error.
I have pushed a fix for this to master.

2. GumboInterface did not update CSS urls with fragments properly.
Fragments on url() used in styles attributes are not commonly found or tested so that issue has never shown up before. This is part of the fix for the above issue as well. I have pushed a fix for this to master.

3. Qt 6.8.2 is broken for this type of svg filter. Qt 6.9.1 is needed to get this to work at all. Something we can not easily work around.

4. Something about that style attribute is internally cached by QtWebEngine and not even a proper full web cache flush after saving the changed Filter_Meta.svg will force it to update properly! It seems to *require* a new xhtml file to be loaded (in this case the nav) so that everything old about that style is forgotten and then the original xhtml file must be reloaded to see the change.

I can track down where the actual save to disk for that Filter_Meta.svg is done, so that is not the problem.

Unfortunately, this last one is not something I can easily workaround or fix.
It only happens with a style attribute with a url to an svg file element. Direct CV edits to Image1.svg are immediately and properly reloaded with the changes I have already pushed to master.

So this is a bit of a nasty piece of code that should help improve Sigil!


I will keep looking to see if there is way to bypass the webcache that will allow us to work around this issue as well.

Last edited by KevinH; 09-01-2025 at 04:11 PM.
KevinH is offline   Reply With Quote