View Single Post
Old 05-08-2021, 11:22 AM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,587
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Strangely enough: using an object tag when embedding the svg by reference (instead of the img tag), allows the externally referenced stylesheet to work as expected.

Code:
<object type="image/svg+xml" data="../Images/Image04_svg_links_style_sheet.svg"></object>
I suspect something deep within Chrome is the culprit.

And once the doctype is removed from the external svg file, it even passes EPUB3 validation (after being converted to an EPUB3, of course).

Still no idea how widespread the support for such a strategy would be.

Though it raises the question of whether or not Sigil should be parsing files (including those with svg extensions) for "xml-stylesheet" PIs to adjust when updating hrefs.
Attached Files
File Type: epub sigil_expt_v2_epub3.epub (5.5 KB, 214 views)
DiapDealer is online now   Reply With Quote