Habe a look at this thread. I think the issue can be solved by tweaking
* Xlmns declaration
* Tiddler type attribute
Cheers
Sylvain
@sycom
In doing some more poking and prodding, it looks like an external svg image works fine ... the issue is with the datauri encoding that is going on that it breaking the format and the browser is just ignoring it. I tried the long-form macro call <$macrocall $name="datauri" title="Example SVG" $output="text/plain"/> but no joy.
"data:image/svg+xml;charset=utf8,%3Csvg ..."
background-image: url({{SVG Background DataURI||$:/core/templates/plain-text-tiddler}});
.svg-foreground {
position: relative;
z-index: 1;
}
.svg-background {
position: relative;
overflow: hidden;
}
.svg-background:after {
content: ' ';
display: block;
position: absolute;
left: 0;
top: 0;
z-index: 0;
width: 100%;
height: 100%;
opacity: 0.1;
background-image: url({{SVG Background DataURI||$:/core/templates/plain-text-tiddler}});
background-repeat: no-repeat;
background-position: center;
}
The DataURI macro is not suitable for directly converting SVG tiddlers so I had to use the website:and save the resulting (including the quotes!)
background-image: url("<<datauri "Example SVG">>");
--
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/ph6RwByi7t0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1ef343fb-b3da-4b54-bc7f-39f068689273%40googlegroups.com.