no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / layout / reftests / text-overflow / marker-string.html
blob356ae14c2f2f0c3d492aec6a63cdbddc69302264
1 <!DOCTYPE HTML>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/licenses/publicdomain/
6 Test: text-overflow:<string>
7 -->
8 <html><head>
9 <title>text-overflow: text-overflow:&lt;string&gt;</title>
10 <style type="text/css">
11 @font-face {
12 font-family: DejaVuSansMono;
13 src: url(../fonts/DejaVuSansMono.woff);
15 html,body {
16 color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono;
19 .test {
20 overflow:hidden;
21 width:20ch;
22 height:3em;
23 white-space:nowrap;
24 margin-left:2em;
25 position:relative;
27 span {
28 margin: 0 -0.5ch;
30 s {
31 margin: 0 -0.5ch;
32 padding: 0 11ch;
34 .rlo {
35 unicode-bidi: bidi-override; direction:rtl;
37 .lro {
38 unicode-bidi: bidi-override;
40 .rtl {
41 direction:rtl;
43 .ltr {
44 direction:ltr;
47 .t1 { text-overflow:"" ""; }
48 .t2 { text-overflow:"Hello World" "Hello World"; }
49 .t3 { text-overflow:"X" "X"; }
51 </style>
53 </head><body>
56 <!-- Empty marker clips text -->
57 <div class="test t1"><span>xx</span></div>
58 <div class="test rtl t1"><span>xx</span></div>
59 <!-- big marker clips all text -->
60 <div class="test t2"><span>xx</span></div>
61 <div class="test rtl t2"><span>xx</span></div>
63 <!-- start marker that doesn't fit -->
64 <div class="test t2" style="width:3ch"><span>xx</span></div>
65 <div class="test rtl t2" style="width:3ch"><span>xx</span></div>
67 <!-- start + end marker, nothing to align to -->
68 <div class="test t3"><s></s></div>
69 <div class="test rtl t3"><s></s></div>
72 </body>
73 </html>