summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/368155-negative-margins-1.html
blob: 71e7e2bbb68897124ac2a1f7b01ad2913529a4be (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
<!DOCTYPE HTML>
<html>
<head>
<title>Minimum intrinsic widths combined with negative margins</title>
<style type="text/css">

td { height: 2.5em; }

span {
  display: inline-block;
  height: 0.5em;
  width: 1em;
}

</style>
</head>
<body>

<table border width="1"><tr><td>
  <span style="margin-right: -1em"></span>
</td></tr></table>
<table border width="1"><tr><td>
  <span style="margin-left: -1em"></span>
</td></tr></table>
<table border width="1"><tr><td>
  <span style="margin: 0 -0.5em"></span>
</td></tr></table>

<table border width="1"><tr><td>
  <span style="margin-right: -2em"></span>
</td></tr></table>
<table border width="1"><tr><td>
  <span style="margin-left: -2em"></span>
</td></tr></table>
<table border width="1"><tr><td>
  <span style="margin: 0 -1em"></span>
</td></tr></table>

<table border width="1"><tr><td>
  <span style="margin-right: -2em"></span>&#x200b;<span style="width: 3em"></span>
</td></tr></table>

<table border width="1"><tr><td>
  <span style="width: 3em"></span>&#x200b;<span style="margin-right: -2em"></span>
</td></tr></table>

<table border width="1"><tr><td>
  <span style="width: 3em;"></span>&#x200b;<span style="margin-left: -2em"></span>
</td></tr></table>

<table border width="1"><tr><td style="text-indent: -.75em">
  <span style="margin-right: -.75em"></span>&#x200b;<span></span>
</td></tr></table>

</body>
</html>