OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body id=tCF1> | |
4 A | |
5 <style> | |
6 .class1 { | |
7 background-image: -webkit-cross-fade(url(#does-not-exist), url(http://-42949
67295), 157%); | |
8 } | |
9 .class2:first-of-type { | |
10 -webkit-animation-direction: alternate; | |
11 } | |
12 </style> | |
13 <script> | |
14 if (window.testRunner) | |
15 testRunner.dumpAsText(); | |
16 | |
17 var docElement = document.body; | |
18 docElement.contentEditable = "true"; | |
19 | |
20 function crash() { | |
21 test1 = document.createElementNS("http://www.w3.org/1999/xhtml", "thead"); | |
22 docElement.appendChild(test1); | |
23 test2 = document.createElementNS("http://www.w3.org/1999/xhtml", "intent"); | |
24 test2.setAttribute("class", "class2"); | |
25 docElement.appendChild(test2); | |
26 test1.setAttribute("class", "class1"); | |
27 window.getSelection().selectAllChildren(tCF1); | |
28 document.execCommand("hilitecolor", false, "#FF0000"); | |
29 document.execCommand("InsertText", false, "PASS. WebKit didn't crash."); | |
30 } | |
31 | |
32 document.addEventListener("DOMContentLoaded", crash, false); | |
33 </script> | |
34 </html> | |
OLD | NEW |