<!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: 4em;
}
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 spanning lines.
Should wrap and include space representing a newline after the first
line. -->
<div id="container">
x <span>y z</span> a
</div>
</body>