Sugarcube 2.22.0 is apparently incompatible with <style scope> which is used in Generate_Stylesheet. I'm attempting to flag down prndev over this issue, but if anyone else can provide a solution in the meantime, that would be great. This issue risks permanantly bricking embedded vector art!
Temporary fix:
Navigate to /devNotes/Sugarcube stuff and make a copy of header backup 222. Take that copy and place it in /devTools/tweeGo/storyFormats/sugarcube-2, remove header.html, and rename your copy to header.html. You will now be running on 2.21.0 again with working vector art.
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
I used scoped styles because they were ideal for this kind of task. Unfortunately, scoped styles have been removed from Firefox and all other major browsers (https://github.com/whatwg/html/issues/552). I came up with an alternative solution back in the day, but kept the "scope" attribute in. It can safely be removed.
However, this does not seem to solve the actual problem: Within the HTML style tag, variables do not get replaced but appear in the output as raw text. As a result, the style definitions are missing and the SVG objects are rendered black. It is not only naked variable lookup, print macros do not work, either. I cannot look into this further today. I want to keep you posted in case I find out more later.
Unrelated: I like to keep up who is who. @Pregmodder, are you the same person as github.com/pregAnon?
Looking at the change in SugarCube at https://bitbucket.org/tmedwards/sugarcube/commits/b1117fc84de4eef715c71a40ee7cdf239b7b4d47, it looks like the solution posted by @t3431710 is the way to go. The content in style tags is now handled verbatim (except that certain images can be inserted via data urls). Itbugsme that I did not think of the solution as I already am doing the very same thing to the SVG data during embedding.
On it. I accidentally used my professional account for the commit. Had to delete the fork and start over. Rather not want this project to be connected to my employer. Super awkward.