summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text-overflow/float-edges-1-ref.html
blob: b56b4da8ff5574a198b7cf318178dd60afd6686e (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
<!DOCTYPE HTML>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
  <meta charset="utf-8">
  <title>Reference: Testcase for bug 944200</title>
  <style type="text/css">
html,body {
  color:black; background-color:white; font:20px/1 Courier New, Courier, monospace; padding:0; margin:0;
}

.container {
  border: 1px solid black;
  width: 150px;
  overflow: hidden;
  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>aaaaaaa&#x2026;</div>
<div class="container"><div class="float">FF</div>aaaaaaa&#x2026;</div>
<div class="container"><div class="float">FF</div>aaaaaaa&#x2026;<br>aaaaaaaaaaa&#x2026;</div>
<div class="container"><div class="float">FF</div>aaaaaaa&#x2026;<br>aaaaaaaaaa</div>

<div class="container" style="text-indent:-20px"><div class="float left">FF</div>&nbsp;&nbsp;&#x2026;aa</div>
<div class="container" style="text-indent:-20px"><div class="float left">FF</div>&nbsp;&nbsp;&#x2026;aa<br>aaaaaaaaaaa&#x2026;</div>
<div class="container" style="text-indent:-20px"><div class="float left">FF</div>&nbsp;&nbsp;&#x2026;aa<br>aaaaaaaaaa</div>
<div class="container" style="text-indent:-20px"><div class="float left">FF</div>&nbsp;&nbsp;&#x2026;aa<br><span style="margin-left:-20px">&nbsp;&nbsp;&#x2026;aaaaaaa</span></div>
</div>


<div style="float:right">
<div class="container">
aaaaaaaaaa<br>
aaaaaaaaaaa&#x2026;<br><div class="float h">FF</div>
aaaaaaa&#x2026;<br>
aaaaaaa<br>
aaaaaaa&#x2026;<br>
aaaaaaa&#x2026;<br>
aaaaaaaaaa<br>
aaaaaaaaaaa&#x2026;<br>
</div>

<div class="container" style="text-indent:-20px">
&nbsp;&nbsp;&#x2026;aaaaaaa<br>
aaaaaaaaaaa&#x2026;<br><div class="float left h">FF</div>
<span style="margin-left:-20px">&nbsp;&nbsp;&#x2026;aaaaaa&#x2026;</span><br>
aaaaaaa&#x2026;<br>
aaaa<br>
<span style="margin-left:-20px">&nbsp;&nbsp;&#x2026;aaaaaaa</span><br>
aaaaaaaaaa<br>
aaaaaaaaaaa&#x2026;<br>
</div>

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