<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<p>
This tests that a line break is prohibited between an ideographic comma and a right corner bracket.
</p>
<div id="target" style="font-size: 72px;">う、」う</div>
<p id="result">Test did not run.</p>
<script>
test(() => {
var target = document.getElementById("target");
var range = document.createRange();
range.setStart(target.firstChild, 0);
range.setEnd(target.firstChild, 2);
var width = Math.ceil(range.getBoundingClientRect().width);
target.style.width = width + "px";
var rect = range.getBoundingClientRect();
range.setStart(target.firstChild, 2);
range.setEnd(target.firstChild, 3);
assert_equals(range.getBoundingClientRect().top, rect.top);
});
</script>