Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / first-letter-range-insert.html
blobd0fd66e73cd93034ce0c8c3c9fbeae929e14d0b8
2 <style>
3 div:first-child {
4 -webkit-column-count:65540;
6 div:first-letter {
7 color: green;
9 </style>
10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
13 document.addEventListener("readystatechange", function() {
14 document.execCommand("SelectAll")
15 window.getSelection().deleteFromDocument();
16 });
18 document.addEventListener("DOMCharacterDataModified", modifiedListener);
19 function modifiedListener(evt) {
20 document.removeEventListener("DOMCharacterDataModified", modifiedListener);
21 window.getSelection().getRangeAt(0).insertNode(document.getElementById('dfn'));
23 </script>
24 <body>
25 <!-- Passes if no CRASH in debug. -->
27 <dfn id='dfn'></dfn>
29 <span>
30 <div id='node'>
31 c B
32 </div>
33 </span>
34 </body>