3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/licenses/publicdomain/
7 <title>text-overflow: basic marker position tests
</title>
8 <style type=
"text/css">
10 font-family: DejaVuSansMono
;
11 src: url
(../fonts/DejaVuSansMono.woff);
14 color:black
; background-color:white
; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono
;
24 unicode-bidi: bidi-override
; direction: rtl
;
27 unicode-bidi: bidi-override
; direction: ltr
;
67 border: 1px solid magenta
;
68 text-decoration:overline
;
84 width:1px; height:1px;
87 width:1.5em; height:1px;
90 width:1em; height:1px;
92 .ins2 { margin-right: 0.8em; margin-left: -1em; }
94 width:1000px; height:1px;
96 .e { padding: 0 0.8em; }
98 x1
{ display:inline-block
; position:relative
;}
99 x1 m
{ position:absolute
; right:0; font-size:16px; }
101 #test1a { top:0; left:0; position:absolute
; }
102 #test1b { top:0; left:100px; position:absolute
; }
103 #test1c { top:0; left:200px; position:absolute
; }
104 #test1d { top:0; left:300px; position:absolute
; }
105 #test2a { top:40px; left:0; position:absolute
; }
106 #test2b { top:40px; left:100px; position:absolute
; }
107 #test2c { top:40px; left:200px; position:absolute
; }
108 #test2d { top:40px; left:300px; position:absolute
; }
109 #test3a { top:80px; left:0; position:absolute
; }
110 #test3b { top:80px; left:100px; position:absolute
; }
111 #test3c { top:80px; left:200px; position:absolute
; }
112 #test3d { top:80px; left:300px; position:absolute
; }
113 #test4a { top:120px; left:0; position:absolute
; }
114 #test4b { top:120px; left:100px; position:absolute
; }
115 #test4c { top:120px; left:200px; position:absolute
; }
116 #test4d { top:120px; left:300px; position:absolute
; }
117 #test5a { top:160px; left:0; position:absolute
; }
118 #test5b { top:160px; left:100px; position:absolute
; }
119 #test5c { top:160px; left:200px; position:absolute
; }
120 #test5d { top:160px; left:300px; position:absolute
; }
121 #test6a { top:200px; left:0; position:absolute
; }
122 #test6b { top:200px; left:100px; position:absolute
; }
123 #test6c { top:200px; left:200px; position:absolute
; }
124 #test6d { top:200px; left:300px; position:absolute
; }
125 #test7a { top:240px; left:0; position:absolute
; }
126 #test7b { top:240px; left:100px; position:absolute
; }
127 #test7c { top:240px; left:200px; position:absolute
; }
128 #test7d { top:240px; left:300px; position:absolute
; }
129 #test8a { top:280px; left:0; position:absolute
; }
130 #test8b { top:280px; left:100px; position:absolute
; }
131 #test8c { top:280px; left:200px; position:absolute
; }
132 #test8d { top:280px; left:300px; position:absolute
; }
133 #test9a { top:320px; left:0; position:absolute
; border:1px solid black
; }
134 #test9b { top:320px; left:100px; position:absolute
; border:1px solid black
; }
135 #test9c { top:320px; left:200px; position:absolute
; border:1px solid black
; }
136 #test9d { top:320px; left:300px; position:absolute
; border:1px solid black
; }
137 #test10a { top:360px; left:0; position:absolute
; }
138 #test10b { top:360px; left:100px; position:absolute
; }
143 <div style=
"position: absolute; top:20px; left:50px;">
146 <div class=
"s a"><div class=
"p rel">
147 <div class=
"abs0" style=
"text-align:left"><span class=
"cl a"> ||||
</span><m>…</m></div>
148 <div class=
"abs0" style=
"text-align:left"><span class=
"cl a"> <m style=
"position:absolute; right:0; bottom:0;"><m0 style=
" font-size:16px">…</m0></m></span></div>
152 <div class=
"s a rtl"><div class=
"p rel">
153 <div class=
"abs0r"><span class=
"cr a rlo"> ||||
</span><m>…</m></div>
154 <div class=
"abs0r"><span class=
"cr a rlo"> <m style=
"position:absolute; left:0; bottom:0;"><m0 style=
" font-size:16px">…</m0></m></span></span></div>
158 <div class=
"s a"><div class=
"p rel">
159 <div class=
"abs0" style=
"text-align:left"><span class=
"cl a"> ||||
</span><m>…</m></div>
160 <div class=
"abs0" style=
"text-align:left"><span class=
"cl a"> <m style=
"position:absolute; right:0; bottom:0;"><m0 style=
" font-size:16px">…</m0></m></span></div>
164 <div class=
"s a rtl"><div class=
"p rel">
165 <div class=
"abs0r"><span class=
"cr a rlo"> ||||
</span><m>…</m></div>
166 <div class=
"abs0r"><span class=
"cr a rlo"> <m style=
"position:absolute; left:0; bottom:0;"><m0 style=
" font-size:16px">…</m0></m></span></span></div>
171 <div class=
"s a"><div class=
"p rel">
172 <div class=
"abs0" style=
"text-align:left"><m>…</m><span class=
"cl a"> </span></div>
176 <div class=
"s a"><div class=
"p rel">
177 <div class=
"abs0" style=
"text-align:left"><m>…</m><span class=
"cl a"> </span></div>
181 <div class=
"s a"><div class=
"p rel">
182 <div class=
"abs0" style=
"text-align:right; left:auto; right:0;"><span class=
"cr a"> </span><m>…</m></div>
186 <div class=
"s a"><div class=
"p rel">
187 <div class=
"abs0" style=
"text-align:right; left:auto; right:0;"><span class=
"cr a"> </span><m>…</m></div>
192 <div class=
"s a"><div class=
"p rel">
193 <div class=
"abs0" style=
"text-align:left"><m>…</m><span class=
"cl a"> </span></div>
197 <div class=
"s a"><div class=
"p rel">
198 <div class=
"abs0" style=
"text-align:left"><m>…</m><span class=
"cl a"> </span></div>
202 <div class=
"s a"><div class=
"p rel">
203 <div class=
"abs0" style=
"text-align:right; left:auto; right:0;"><span class=
"cr a"> </span><m>…</m></div>
207 <div class=
"s a"><div class=
"p rel">
208 <div class=
"abs0" style=
"text-align:right; left:auto; right:0;"><span class=
"cr a"> </span><m>…</m></div>
212 <!-- start marker, marker partly overlaps image, nothing to align with -->
213 <div id=
"test4a"><div class=
"s a"><div class=
"p o ltr"><span class=
"cl a"><img class=
"overlap1" src=
"../image/big.png"></span></div></div></div>
214 <div id=
"test4b"><div class=
"s a"><div class=
"p o rtl l"><span class=
"cl a"><img class=
"overlap1" src=
"../image/big.png"></span></div></div></div>
215 <div id=
"test4c"><div class=
"s a"><div class=
"p o ltr r"><span class=
"cr a"><img class=
"overlap1" src=
"../image/big.png"></span></div></div></div>
216 <div id=
"test4d"><div class=
"s a"><div class=
"p o rtl"><span class=
"cr a"><img class=
"overlap1" src=
"../image/big.png"></span></div></div></div>
218 <!-- start marker + end, marker partly overlaps image, nothing to align with -->
219 <div id=
"test5a"><div class=
"s a"><div class=
"p o ltr"><span class=
"cl a"><img class=
"overlap2" src=
"../image/big.png"></span></div></div></div>
220 <div id=
"test5b"><div class=
"s a"><div class=
"p o rtl l"><span class=
"cl a"><img class=
"overlap2" src=
"../image/big.png"></span></div></div></div>
221 <div id=
"test5c"><div class=
"s a"><div class=
"p o ltr r"><span class=
"cr a"><img class=
"overlap2" src=
"../image/big.png"></span></div></div></div>
222 <div id=
"test5d"><div class=
"s a"><div class=
"p o rtl"><span class=
"cr a"><img class=
"overlap2" src=
"../image/big.png"></span></div></div></div>
225 <div class=
"s a"><div class=
"p rel">
226 <div class=
"abs0"><span class=
"cr a"> </span><img class=
"a overlap1" src=
"../image/big.png"></div>
227 <div class=
"abs0"><span class=
"cr a"> <m style=
"position:absolute; right:0; bottom:0;"><m0 style=
"font-size:16px">…</m0></m></span></span></div>
231 <div class=
"s a"><div class=
"p rel">
232 <div class=
"abs0"><span class=
"cr a"> </span><img class=
"a overlap1" src=
"../image/big.png"></div>
233 <div class=
"abs0"><span class=
"cr a"> <m style=
"position:absolute; right:0; bottom:0;"><m0 style=
"font-size:16px">…</m0></m></span></span></div>
237 <div class=
"s a"><div class=
"p rel">
238 <div class=
"abs0" style=
"text-align:right; right:0; "><span class=
"cr a"><img class=
"overlap1" src=
"../image/big.png"> </span></div>
239 <div class=
"abs0" style=
"text-align:right; right:0; "><span class=
"cr a"><img class=
"overlap1" src=
"../image/big.png"><m style=
"position:absolute; bottom:0;"><m0 style=
"font-size:16px">…</m0></m> </span></div>
243 <div class=
"s a"><div class=
"p rel">
244 <div class=
"abs0" style=
"text-align:right; right:0; "><span class=
"cr a"><img class=
"overlap1" src=
"../image/big.png"> </span></div>
245 <div class=
"abs0" style=
"text-align:right; right:0; "><span class=
"cr a"><img class=
"overlap1" src=
"../image/big.png"><m style=
"position:absolute; bottom:0;"><m0 style=
"font-size:16px">…</m0></m> </span></div>
250 <div class=
"s a"><div class=
"p ltr"><span class=
"c5 a">|
<x style=
"display:inline-block;width:0.8em;text-align:right"><m style=
"font-size:16px;">…</m></x><img class=
"ins1" src=
"../image/big.png"></span></div></div>
253 <div id=
"test7b"><div class=
"s a"><div class=
"p ltr r"><img class=
"a ins1" src=
"../image/big.png"><x class=
"a" style=
"display:inline-block;width:0.8em;text-align:left"><m style=
"font-size:16px;">…</m></x><span class=
"c5 a" style=
"margin-right:0"> </span></div></div></div>
256 <div class=
"s a"><div class=
"p ltr"><span class=
"c5 a">|
<x style=
"display:inline-block;width:0.8em;text-align:right"><m style=
"font-size:16px;">…</m></x><img class=
"ins1" src=
"../image/big.png"></span></div></div>
259 <div id=
"test7d"><div class=
"s a"><div class=
"p ltr r"><img class=
"a ins1" src=
"../image/big.png"><x class=
"a" style=
"display:inline-block;width:0.8em;text-align:left"><m style=
"font-size:16px;">…</m></x><span class=
"c5 a" style=
"margin-right:0"> </span></div></div></div>
262 <div id=
"test8a"><div class=
"s a"><div class=
"a p ltr"><span class=
"c5 a"></span><span class=
"e"></span><span style=
"margin-right:-0.5em">…</span><span>‌</span></div></div></div>
263 <div id=
"test8d"><div class=
"s a"><div class=
"a p rtl"><span class=
"c5 a"></span><span class=
"e"></span><span style=
"margin-left:-0.5em">…</span><span>‌</span></div></div></div>
265 <div id=
"test9a"><div class=
"s a"><div class=
"p ltr"><span class=
"e"></span><i> </i><m>…</m><span class=
"e a"></span></div></div></div>
266 <div id=
"test9b"><div class=
"s a"><div class=
"p rtl"><span class=
"e"></span><i> </i><m>…</m><span class=
"e a"></span></div></div></div>
267 <div id=
"test9c"><div class=
"s a"><div class=
"p ltr"><span class=
"e"></span><i> </i><m>…</m><span class=
"e a"></span></div></div></div>
268 <div id=
"test9d"><div class=
"s a"><div class=
"p rtl"><span class=
"e"></span><i> </i><m>…</m><span class=
"e a"></span></div></div></div>
270 <!-- no marker for overflow:auto that doesn't trigger scrollbar -->
271 <div id=
"test10a"><div class=
"s a"><div class=
"p o ltr"><span style=
"margin-left:-5px" >||||||
</span></div></div></div>
272 <div id=
"test10b"><div class=
"s a"><div class=
"p o rtl"><span style=
"margin-right:-5px">||||||
</span></div></div></div>