2 This tests that a line break is prohibited between an ideographic comma and a right corner bracket.
4 <div id=
"target" style=
"font-size: 72px;">う、」う</div>
5 <p id=
"result">Test did not run.
</p>
8 testRunner
.dumpAsText();
10 var target
= document
.getElementById("target");
11 var range
= document
.createRange();
12 range
.setStart(target
.firstChild
, 0);
13 range
.setEnd(target
.firstChild
, 2);
14 var width
= Math
.ceil(range
.getBoundingClientRect().width
);
15 target
.style
.width
= width
+ "px";
16 var rect
= range
.getBoundingClientRect();
18 range
.setStart(target
.firstChild
, 2);
19 range
.setEnd(target
.firstChild
, 3);
21 document
.getElementById("result").innerText
=
22 range
.getBoundingClientRect().top
== rect
.top
? "PASS" : "FAIL";