summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text-overflow/float-edges-1.html
blob: 169913ac315224ea2deca153c7c6aee127d106b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE HTML>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
  <meta charset="utf-8">
  <title>Testcase for bug 944200</title>
  <style type="text/css">
html,body {
  color:black; background-color:white; font:20px/1 monospace; padding:0; margin:0;
}

.container {
  border: 1px solid black;
  width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-overflow: ellipsis ellipsis;
  white-space: nowrap;
}

.float {
  float: right;
  background: yellow;
  width: 50px;
  text-indent: 0;
}
.left { float: left; }
.h { height: 3.5em; }
  </style>
</head>
<body>

<div style="float:left">
<div class="container"><div class="float">FF</div>aaaaaaaaaaaaaaaaaaaaaa</div>
<div class="container"><div class="float">FF</div>aaaaaaaaaa</div>
<div class="container"><div class="float">FF</div>aaaaaaaaaaaaaaaaaaaaaa<br>aaaaaaaaaaaaaaaaaaaaaa</div>
<div class="container"><div class="float">FF</div>aaaaaaaaaaaaaaaaaaaaaa<br>aaaaaaaaaa</div>

<div class="container" style="text-indent:-20px"><div class="float left">FF</div>aaaaa</div>
<div class="container" style="text-indent:-20px"><div class="float left">FF</div>aaaaa<br>aaaaaaaaaaaaaaaaaaaaaa</div>
<div class="container" style="text-indent:-20px"><div class="float left">FF</div>aaaaa<br>aaaaaaaaaa</div>
<div class="container" style="text-indent:-20px"><div class="float left">FF</div>aaaaa<br><span style="margin-left:-20px">aaaaaaaaaa</span></div>
</div>


<div style="float:right">
<div class="container">
aaaaaaaaaa<br>
aaaaaaaaaaaaaaaaaaaaaa<br><div class="float h">FF</div>
aaaaaaaaaaaaaaaaaaaaaa<br>
aaaaaaa<br>
aaaaaaaaaa<br>
aaaaaaaaaaaaaaaaaaaaaa<br>
aaaaaaaaaa<br>
aaaaaaaaaaaaaaaaaaaaaa<br>
</div>

<div class="container" style="text-indent:-20px">
aaaaaaaaaa<br>
aaaaaaaaaaaaaaaaaaaaaa<br><div class="float left h">FF</div>
<span style="margin-left:-20px">aaaaaaaaaaaaaaaaaaaaaa</span><br>
aaaaaaaaaaaaaaaaaaaaaa<br>
aaaa<br>
<span style="margin-left:-20px">aaaaaaaaaa</span><br>
aaaaaaaaaa<br>
aaaaaaaaaaaaaaaaaaaaaa<br>
</div>

</div>
</body>
</html>