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
;
23 border:1px solid black
;
30 direction:rtl
; margin-left:0;
40 s
{position:absolute
; background:black
; z-index:1; }
41 #mask1 {top:0; left:60px; width:70px; height:100%; }
42 #mask2 {top:30px; left:0; width:100%; height:30px; }
43 #mask3 {top:100px; left:0; width:100%; height:30px; }
44 #mask4 {top:170px; left:0; width:100%; height:30px; }
45 #mask5 {top:240px; left:0; width:100%; height:30px; }
46 #mask6 {top:320px; left:0; width:100%; height:30px; }
47 #mask7 {top:390px; left:0; width:100%; height:30px; }
48 #mask8 {top:460px; left:0; width:100%; height:30px; }
49 #mask9 {top:530px; left:0; width:100%; height:30px; }
52 function scrolldivs() {
53 var divs
= document
.getElementsByTagName('div');
54 for (i
= 0; i
< divs
.length
; ++i
) {
55 if (window
.getComputedStyle(divs
[i
]).direction
== 'ltr')
56 divs
[i
].scrollLeft
= 99999999;
58 divs
[i
].scrollLeft
= -99999999;
60 document
.documentElement
.removeAttribute('class');
64 </head><body onload=
"scrolldivs()">
76 <div class=
"test">HelloKittyוסוכנויות
</div>
77 <div class=
"test rtl">HelloKittyוסוכנויות
</div>
78 <div class=
"test t1">HelloKittyוסוכנויות
</div>
79 <div class=
"test rtl t1">HelloKittyוסוכנויות
</div>
80 <div class=
"test t2">HelloKittyוסוכנויות
</div>
81 <div class=
"test rtl t2">HelloKittyוסוכנויות
</div>
82 <div class=
"test t4">HelloKittyוסוכנויות
</div>
83 <div class=
"test rtl t4">HelloKittyוסוכנויות
</div>