OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 if (window.layoutTestController) | 5 if (window.layoutTestController) |
6 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
7 </script> | 7 </script> |
8 <style type="text/css"> | 8 <style type="text/css"> |
9 div { zoom: 200%; width: 100px; height: 50px; } | 9 div { zoom: 200%; width: 100px; height: 50px; } |
10 </style> | 10 </style> |
11 </head> | 11 </head> |
12 <body> | 12 <body> |
13 <p> | 13 <p> |
14 Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=46120">Bug https://bug
s.webkit.org/show_bug.cgi?id=46120</a>. | 14 Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=46120">Bug https://bug
s.webkit.org/show_bug.cgi?id=46120</a>. |
15 </p> | 15 </p> |
16 <p> | 16 <p> |
17 This test checks that setting the style on a zoomed image does not lead to a nul
l pointer exception. | 17 This test checks that setting the style on a zoomed image does not lead to a nul
l pointer exception. |
18 The test passes if it does not cause a crash. | 18 The test passes if it does not cause a crash. |
19 </p> | 19 </p> |
20 <div id="inline"> | 20 <div id="inline"> |
21 </div> | 21 </div> |
22 <script> | 22 <script> |
23 document.getElementById("inline").setAttribute("style", "content: url(data:i
mage/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAAA1BMVEUAgACc+aWR
AAAADElEQVR42mNgIAEAAAAtAAH7KhMqAAAAAElFTkSuQmCC);"); | 23 document.getElementById("inline").setAttribute("style", "content: url(data:i
mage/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAAA1BMVEUAgACc+aWR
AAAADElEQVR42mNgIAEAAAAtAAH7KhMqAAAAAElFTkSuQmCC);"); |
24 </script> | 24 </script> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |