G.download() SVG does not inherit ancestors' styles
If the CSS has body { font-family: sans-serif; }
and we place an <svg>
inside the body, it inherits the sans-serif font-family.
But when the SVG is downloaded, even though all styles are downloaded along with it, the sans-serif font will not be applied to the <svg>
element -- it is not a child of the <body>
, since there is no body.
Ideally, the SVG should have all its computed styles level applied to it -- perhaps explicitly.