3 <script src=
"../../../resources/testharness.js"></script>
4 <script src=
"../../../resources/testharnessreport.js"></script>
11 <div>شییش ی ی ی ی ی
</div>
12 <div style=
"white-space:pre">شییش ی ی ی ی ی
</div>
17 var expectedNode
= container
.firstElementChild
.firstChild
;
18 var targetNode
= container
.lastElementChild
.firstChild
;
19 for (var i
= 0; i
< expectedNode
.length
; i
++) {
21 assert_equals(getX(targetNode
, i
), getX(expectedNode
, i
));
25 if (window
.testRunner
)
26 container
.style
.display
= "none";
29 function getX(node
, offset
) {
30 var range
= document
.createRange();
31 range
.setStart(node
, offset
);
32 range
.setEnd(node
, offset
+ 1);
33 var bounds
= range
.getBoundingClientRect();