datauri macro not working

40 views
Skip to first unread message

RA

unread,
May 8, 2018, 10:31:50 PM5/8/18
to TiddlyWiki
I have a svg image as a tiddler, and for some reason `datauri` macro is not returning a working data URI for it. Meta and svg attached. Stylesheet below. (Saved as type `text/vnd.tiddlywiki` and tagged with `$:/tags/Stylesheet`

\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock

.rip {
  background
: url(<<datauri "images/test.svg">>) bottom right;
}


test.svg
test.svg.meta

RA

unread,
May 8, 2018, 11:09:04 PM5/8/18
to TiddlyWiki
Actually, when I paste the result in the browser address bar, I do get the image, so looks like `datauri` returns the result in a format suitable for the address bar but not suitable for CSS. I'm missing something simple here... Halp!
Reply all
Reply to author
Forward
0 new messages