<p>
Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=15208">http://bugs.webkit.org/show_bug.cgi?id=15208</a>
display:table causes the collapsed text to show at a different position when expanded</i>.
</p>
<p>
This should say “Lorem ipsum”:
</p>
<div id="table" style="display: table;">
ipsum
</div>
<script>
var table = document.getElementById("table");
table.insertBefore(document.createTextNode("Lorem"), table.firstChild);
</script>