Skip to content

Instantly share code, notes, and snippets.

@taivare
Created April 11, 2015 14:35
Show Gist options
  • Save taivare/fe069cd85a1a57054c6f to your computer and use it in GitHub Desktop.
Save taivare/fe069cd85a1a57054c6f to your computer and use it in GitHub Desktop.
SVG mime support // source http://jsbin.com/kuhox
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SVG mime support</title>
<style id="jsbin-css">
img {
width:300px;
display:block
}
div {
background:url('http://jsbin.com/vutix/1.svg');
width:300px;
height:300px;
}
object {
display:block;
width:300px;
}
</style>
</head>
<body>
img - noice
<img src="http://jsbin.com/vutix/1.svg"/>
<hr>
div - sweet
<div></div>
<hr>
object - can only been seen in <a href="http://jsbin.com/kuhox/1" target="_blank">full output...</a> hmm :/
If you click this link you won't see it, but if you manually navigate to http://jsbin.com/kuhox/1 it should be cool
<object data="http://jsbin.com/vutix/1.svg" type="image/svg+xml">Err:</object>
<script id="jsbin-source-css" type="text/css">img {
width:300px;
display:block
}
div {
background:url('http://jsbin.com/vutix/1.svg');
width:300px;
height:300px;
}
object {
display:block;
width:300px;
}</script>
</body>
</html>
img {
width:300px;
display:block
}
div {
background:url('http://jsbin.com/vutix/1.svg');
width:300px;
height:300px;
}
object {
display:block;
width:300px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment