blob: 0dd35a336b104c610ee7d756ae903b8c6f974651 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="match" href="change-text-node-data-wrapping-expected.html">
<style>
#test {
contain: layout size;
width: 110px;
font: 25px/1 Ahem;
}
</style>
<p>The test passes if there is only one line of text below.</p>
<div id="test">
XX
</div>
<script>
let contentNode = document.createTextNode("");
contentNode.data = "XXXX";
test.appendChild(contentNode);
document.body.offsetLeft;
contentNode.data = "X";
</script>