Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / text-iterator / read-past-cloned-first-letter.html
blobe5088991f79cf505859e49dd2d18840c379ef692
1 <!DOCTYPE html>
2 <style>
3 #source div { height: 30px; }
4 #source::first-letter { border-bottom-width: 0; }
5 </style>
6 <body>
7 <div id="source">
8 <div>B
9 <div id="destination"><div></div><div></div></div>
10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
14 var destination = document.getElementById("destination");
15 var source = document.getElementById("source");
16 document.execCommand("selectall",true,0);
17 destination.appendChild(source.cloneNode(true));
18 document.designMode = "on";
19 document.execCommand("JustifyRight", false, false);
20 onload = function() {
21 document.write("Test passes if no crash.")
23 </script>