Thank you Jeremy, Sylvain, Magnus and Eric for your input. > > For CSS background images you’d need to use an SVG image. I don’t think > there’s a straightforward way to convert the core images, you’d probably > just need to do it manually. >
Having Jeremy's confirmation, I've settled on non-core SVG elements defined as images to make it work in my <summary> elements. I'm keeping all my other SVGs as non-images (the same way as in the core) for the very purpose of being able to flexibly modify them as needed (fill, hover effects, etc.), depending on application. Thanks again. Regards, Hubert On Monday, 4 November 2019 19:12:12 UTC, Sycom wrote: > > Just to say there was no criticism of course. Just pure facts. While > working on leaflet plugin, I've discovered why the image/svg+xml > content-type was not defined: because this images ARE text/vnd-tiddlywiki > for good reasons. > > The reason why xml namespace is "missing" is not as clear for me. As far > as I understand, for web applications with parser, it is generallly needed. > See > https://stackoverflow.com/questions/18467982/are-svg-parameters-such-as-xmlns-and-version-needed > > Is this also a feature? > > In this particular case, it would solve the problem since > > > {background: url("data:image/svg+xml, <$view > tiddler="$:/core/images/chevron-right" format="urlencoded"/>") no-repeat > top left;} > > Works perfectly if xmlns is defined > > Warm regards > > Sylvain > @sycom > > > Le lun. 4 nov. 2019 à 19:25, Jeremy Ruston <[email protected] > <javascript:>> a écrit : > >> >> Most of the core icons have no type defined (image/svg+xml) AND lacks a >> xmlns declaration (<svg xmlns="http://www.w3.org/2000/svg" …) >> >> >> Just to be clear, this is because the core icons are designed to be used >> as SVG elements embedded in the HTML, rather than images. The primary >> reason is that it lets us style/colour the icons at the point of using >> them. There’s some discussion of the difference here: >> >> https://tiddlywiki.com/#Using%20SVG >> >> For CSS background images you’d need to use an SVG image. I don’t think >> there’s a straightforward way to convert the core images, you’d probably >> just need to do it manually. >> >> Best wishes >> >> Jeremy. >> >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "TiddlyWiki" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/tiddlywiki/YznqeuiZyqQ/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/7BBE975C-1844-4050-951C-DEE24A7129B8%40gmail.com >> >> <https://groups.google.com/d/msgid/tiddlywiki/7BBE975C-1844-4050-951C-DEE24A7129B8%40gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/87a85424-eb9c-4a8e-a71e-647c329e7393%40googlegroups.com.

