chromium/third_party/blink/web_tests/virtual/text-antialias/line-breaks-after-ideographic-comma-or-full-stop-2.html

<!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;">&#x3046;&#x3001;&#x0300d;&#x3046;</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>