OLD | NEW |
1 <style> | 1 <style> |
2 body { | 2 body { |
3 var-a: url(1); | 3 var-a: url(1); |
4 -webkit-filter: var(a); | 4 -webkit-filter: var(a); |
5 } | 5 } |
6 body::first-letter { | 6 body::first-letter { |
7 cursor: inherit; | 7 cursor: inherit; |
8 } | 8 } |
9 </style> | 9 </style> |
10 <script> | 10 <script> |
11 if (window.testRunner) { | 11 if (window.testRunner) { |
12 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
13 testRunner.dumpAsText(false); | 13 testRunner.dumpAsText(); |
14 } | 14 } |
15 function init() { | 15 function init() { |
16 var docElement = document.documentElement; | 16 var docElement = document.documentElement; |
17 rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); | 17 rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); |
18 docElement.appendChild(rect); | 18 docElement.appendChild(rect); |
19 text = document.createTextNode("If you can read this, the test passed."); | 19 text = document.createTextNode("If you can read this, the test passed."); |
20 docElement.appendChild(text); | 20 docElement.appendChild(text); |
21 setTimeout("edit();", 20); | 21 setTimeout("edit();", 20); |
22 } | 22 } |
23 document.addEventListener("DOMContentLoaded", init, false); | 23 document.addEventListener("DOMContentLoaded", init, false); |
24 function edit() { | 24 function edit() { |
25 document.designMode = "on"; | 25 document.designMode = "on"; |
26 r = document.createRange(); | 26 r = document.createRange(); |
27 r.selectNodeContents(rect); | 27 r.selectNodeContents(rect); |
28 window.getSelection().addRange(r); | 28 window.getSelection().addRange(r); |
29 window.getSelection().deleteFromDocument(); | 29 window.getSelection().deleteFromDocument(); |
30 if (window.testRunner) testRunner.notifyDone(); | 30 if (window.testRunner) testRunner.notifyDone(); |
31 } | 31 } |
32 </script> | 32 </script> |
OLD | NEW |