3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/licenses/publicdomain/
6 Test: 1px scroll rounding at the end position
8 <html class=
"reftest-wait"><head>
9 <title>text-overflow: scroll rounding
</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
;
24 border:1px solid black
;
31 direction:rtl
; margin-left:0;
41 s
{position:absolute
; background:black
; z-index:1; }
42 #mask1 {top:0; left:60px; width:70px; height:100%; }
43 #mask2 {top:30px; left:0; width:100%; height:30px; }
44 #mask3 {top:100px; left:0; width:100%; height:30px; }
45 #mask4 {top:170px; left:0; width:100%; height:30px; }
46 #mask5 {top:240px; left:0; width:100%; height:30px; }
47 #mask6 {top:320px; left:0; width:100%; height:30px; }
48 #mask7 {top:390px; left:0; width:100%; height:30px; }
49 #mask8 {top:460px; left:0; width:100%; height:30px; }
50 #mask9 {top:530px; left:0; width:100%; height:30px; }
53 function scrolldivs() {
54 var divs
= document
.getElementsByTagName('div');
55 for (i
= 0; i
< divs
.length
; ++i
) {
56 if (window
.getComputedStyle(divs
[i
]).direction
== 'ltr')
57 divs
[i
].scrollLeft
= 99999999;
59 divs
[i
].scrollLeft
= -99999999;
61 document
.documentElement
.removeAttribute('class');
65 </head><body onload=
"scrolldivs()">
77 <div class=
"test">HelloKittyוסוכנויות
</div>
78 <div class=
"test rtl">HelloKittyוסוכנויות
</div>
79 <div class=
"test t1">HelloKittyוסוכנויות
</div>
80 <div class=
"test rtl t1">HelloKittyוסוכנויות
</div>
81 <div class=
"test t2">HelloKittyוסוכנויות
</div>
82 <div class=
"test rtl t2">HelloKittyוסוכנויות
</div>
83 <div class=
"test t4">HelloKittyוסוכנויות
</div>
84 <div class=
"test rtl t4">HelloKittyוסוכנויות
</div>