blob: 09c85ba758cc8a2c9f185ccc84ed8b6952414bb0 [file] [log] [blame]
<html>
<head>
<title>Test for http://bugs.webkit.org/show_bug.cgi?id=11744</title>
<style type="text/css">
div { background-color: red; width: 100px; height: 50px; }
div.imageContent { content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAAA1BMVEUAgACc+aWRAAAADElEQVR42mNgIAEAAAAtAAH7KhMqAAAAAElFTkSuQmCC); }
</style>
</head>
<body>
<div id="dynamic"></div>
<div id="inline"></div>
<script type="text/javascript">
document.getElementById("dynamic").className = "imageContent";
document.getElementById("inline").setAttribute("style", "content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAAA1BMVEUAgACc+aWRAAAADElEQVR42mNgIAEAAAAtAAH7KhMqAAAAAElFTkSuQmCC);");
</script>
</body>
</html>