3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/licenses/publicdomain/
6 Test: Simple bidi cases, scrolled a bit from the start position
8 <html class=
"reftest-wait"><head>
9 <title>text-overflow: simple mixed-bidi cases, scrolled a bit from the start position
</title>
10 <style type=
"text/css">
12 font-family: DejaVuSansMono
;
13 src: url
(../fonts/DejaVuSansMono.woff);
16 color:black
; background-color:white
; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono
;
20 text-overflow:ellipsis ellipsis
;
34 unicode-bidi: bidi-override
; direction: rtl
;
37 unicode-bidi: bidi-override
; direction: ltr
;
48 function scrolldivs() {
49 var divs
= document
.getElementsByTagName('div');
50 for (i
= 0; i
< divs
.length
; ++i
) {
51 if (window
.getComputedStyle(divs
[i
]).direction
== 'ltr')
52 divs
[i
].scrollLeft
= 8;
54 divs
[i
].scrollLeft
= -8;
56 document
.documentElement
.removeAttribute('class');
60 </head><body onload=
"scrolldivs()">
64 <div class=
"test ltr">AxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span></div>
66 <div class=
"test ltr"><span class=
"rlo">Hell
World
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span></div>
68 <div class=
"test ltr"><span class=
"rlo">Hell
World
</span></div>
72 <div class=
"test rtl">AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">Hello
orld
</span></div>
74 <div class=
"test rtl"><span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">Hello
orld
</span></div>
76 <div class=
"test rtl"><span class=
"rlo">Hello
orld
</span></div>
79 <div class=
"test rtl hidden">AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span></div>
81 <div class=
"test rtl hidden"><span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span></div>
83 <div class=
"test rtl hidden"><span class=
"rlo">HelloWorld
</span></div>
88 <div class=
"test ltr hidden">AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span></div>
90 <div class=
"test ltr hidden"><span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span>AxxxxB
<span class=
"rlo">HelloWorld
</span></div>
92 <div class=
"test ltr hidden"><span class=
"rlo">HelloWorld
</span></div>
94 <span style=
"position:absolute; top:0; left:6em; height:6em; overflow:hidden;">
95 <div class=
"test rtl"><br><br><span class=
"rlo">HelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorld
</span></div>