Quote:
Originally Posted by Peter Sorotokin
The following code code works in Digital Editions as well as Firefox and Opera (but not Safari).
g tag is strictly speaking not needed, all of the properties could go to svg. Unfortunatel it does not work properly in DE. (It works for standalone SVG, but when SVG is embedded in XHTML, svg tag is somewhat in between two worlds and it gets confused).
|
First thank you for the example! An example which I can reverse-engineer is what I needed! If anything useful came of this discussion it's this. I hope this discussion sheds some light for those who google this topic 2-3 years down the line.
I was misinformed that Digital Editions uses webkit to render svg, which makes my installation of Chrome and Safari pointless since the above example doesn't display properly, yet there appear to be several features of svg unimplemented in firefox. Even so, it's miles beyond IE which exhibits the type of parser overlap you describe when using object/embed tags to trick IE into displaying something, even if it is a "svg unsupported" message.
Now I have a tough question, how would I mix and match different text styles in that svg code - for example, have some text underlined, italicized, or bolded?