Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Support for external CSS missing #41

Closed
SuperOok opened this issue Mar 26, 2018 · 2 comments
Closed

Support for external CSS missing #41

SuperOok opened this issue Mar 26, 2018 · 2 comments
Assignees

Comments

@SuperOok
Copy link

SuperOok commented Mar 26, 2018

The viewer seems to not support external CSS specified in an xml-stylesheet directive:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet href="mystyles.css" type="text/css"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="200" version="1.1" width="200">
...
</svg>
@SuperOok
Copy link
Author

I guess the problem is that the svgProvider.ts [1] an html-embedded svg is created and the svg-snippet is embedded there. However, in html a CSS file is referenced differently to an XML document which pure SVG is.

[1] https://github.com/cssho/vscode-svgviewer/blob/master/src/svgProvider.ts

@cssho cssho self-assigned this Apr 4, 2018
@cssho
Copy link
Owner

cssho commented Sep 10, 2018

@SuperOok
I'm so late. Added support for external CSS in the latest version.

@cssho cssho closed this as completed Sep 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants