<!DOCTYPE html>
<html>
<head>
<script src="../../resources/ahem.js"></script>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script src="resources/selection.js"></script>
<style>
div {
font-family: Ahem;
width: 5em;
}
body { background-color: lightgreen; }
</style>
</head>
<body onload="selectRangeAfterLayoutAndPaint(container, 0, container, 3);">
<!-- Two lines in one block with a span on the first line. Should wrap and
include space representing a newline only at end of the first line. -->
<div id="container">
x <span>y</span> z a
</div>
</body>