blob: 664924e98a81812a3de31d1c7d122aaa9053eb17 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<style type="text/css">
div { zoom: 200%; width: 100px; height: 50px; }
</style>
</head>
<body>
<p>
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=46120">Bug https://bugs.webkit.org/show_bug.cgi?id=46120</a>.
</p>
<p>
This test checks that setting the style on a zoomed image does not lead to a null pointer exception.
The test passes if it does not cause a crash.
</p>
<div id="inline">
</div>
<script>
document.getElementById("inline").setAttribute("style", "content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAAA1BMVEUAgACc+aWRAAAADElEQVR42mNgIAEAAAAtAAH7KhMqAAAAAElFTkSuQmCC);");
</script>
</body>
</html>