Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / decomposed-after-stacked-diacritics.html
blob5caf54f54e3a1ca4071d0519dad593e5f8203746
1 <!DOCTYPE html>
2 <div style="font-size: 72px;">
3 <span id="reference">e&#x0300;</span><span id="test">&#x1e17;e&#x0300;</span>
4 </div>
5 <div id="result">Test did not run.</div>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 var reference = document.getElementById("reference").firstChild;
11 var referenceRange = document.createRange();
12 referenceRange.setStart(reference, 0);
13 referenceRange.setEnd(reference, 2);
14 var referenceWidth = referenceRange.getBoundingClientRect().width;
16 var test = document.getElementById("test").firstChild;
17 var testRange = document.createRange();
18 testRange.setStart(test, 1);
19 testRange.setEnd(test, 3);
20 var testWidth = testRange.getBoundingClientRect().width;
22 document.getElementById("result").innerText = Math.abs(testWidth - referenceWidth) <= 1 ? "PASS" : "FAIL";
23 </script>