Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created December 20, 2012 18:56
Show Gist options
  • Save dergachev/4347712 to your computer and use it in GitHub Desktop.
Save dergachev/4347712 to your computer and use it in GitHub Desktop.
SVG gist 404 error test
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1" viewBox="0 0 300 300" preserveAspectRatio="none">
<defs>
<g id="horizontal-lines">
<polyline vector-effect="non-scaling-stroke" points="0,100 300,100" />
<polyline vector-effect="non-scaling-stroke" points="0,200 300,200" />
</g>
<g id="vertical-lines">
<polyline vector-effect="non-scaling-stroke" points="100,0 100,300" />
<polyline vector-effect="non-scaling-stroke" points="200,0 200,300" />
</g>
</defs>
<use xlink:href="#horizontal-lines" style="stroke: white; stroke-width: 4"/>
<use xlink:href="#horizontal-lines" style="stroke: black; stroke-width: 2"/>
<use xlink:href="#vertical-lines" style="stroke: white; stroke-width: 4"/>
<use xlink:href="#vertical-lines" style="stroke: black; stroke-width: 2"/>
</svg>
@dergachev
Copy link
Author

@dergachev
Copy link
Author

Clearly problem with SVG extension. This works fine:
https://gist.github.com/4347712#file-test-svg-no-extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment