Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / line-breaks-after-ideographic-comma-or-full-stop-2.html
blob89b9cbda9cd009119aed77d52a0008f614143a25
1 <p>
2 This tests that a line break is prohibited between an ideographic comma and a right corner bracket.
3 </p>
4 <div id="target" style="font-size: 72px;">&#x3046;&#x3001;&#x0300d;&#x3046;</div>
5 <p id="result">Test did not run.</p>
6 <script>
7 if (window.testRunner)
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";
23 </script>