Skip to content

Instantly share code, notes, and snippets.

@ollicle
Last active January 4, 2016 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ollicle/8554018 to your computer and use it in GitHub Desktop.
Save ollicle/8554018 to your computer and use it in GitHub Desktop.
IE11 crasher

Prerequisites appear to be:

  • IE11 on Windows 7
  • SVG image used as a background image
  • SVG image includes a font-face declaration
  • Browser crashes on unload (refresh)
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_3" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 200 200" enable-background="new 0 0 200 200" xml:space="preserve">
<style type="text/css">
<![CDATA[
@font-face {/* o */}
]]>
</style>
<text transform="matrix(1 0 0 1 0 30)" fill="#000" font-size="24">Oops</text>
</svg>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>font-face in SVG as background image crasher</title>
<style type="text/css">
.element {
height: 200px;
width: 200px;
background: url(font-face.svg);
}
</style>
</head>
<body>
<div class="element"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment