1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
5 if (window.layoutTestController)
6 layoutTestController.dumpAsText();
8 <style type="text/css">
9 div { zoom: 200%; width: 100px; height: 50px; }
14 Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=46120">Bug https://bugs.webkit.org/show_bug.cgi?id=46120</a>.
17 This test checks that setting the style on a zoomed image does not lead to a null pointer exception.
18 The test passes if it does not cause a crash.
23 document.getElementById("inline").setAttribute("style", "content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAAA1BMVEUAgACc+aWRAAAADElEQVR42mNgIAEAAAAtAAH7KhMqAAAAAElFTkSuQmCC);");