<!DOCTYPE html>
<style>
#source div { height: 30px; }
#source::first-letter { border-bottom-width: 0; }
</style>
<body>
<div id="source">
<div>B
 <div id="destination"><div></div><div></div></div>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

var destination = document.getElementById("destination");
var source = document.getElementById("source");
document.execCommand("selectall",true,0);
destination.appendChild(source.cloneNode(true));
document.designMode = "on";
document.execCommand("JustifyRight", false, false);
onload = function() {
    document.write("Test passes if no crash.")
};
</script>
