summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/tables/border-collapse-empty-row-ref.html
blob: ca1108ccd7bf733e26e3bb6f9105404063da942a (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
<!DOCTYPE html>
<link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1819266">
<meta name="assert" content="This test checks that collapsed border does not paint outside of its expected area.">
<style>
table {
  display: inline-table;
  border-collapse: collapse;
}

td {
  border: 10px solid black;
  line-height: 0;
  padding: 0;
}

span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: grey;
}

.spacer-1 tr:not(:last-child) td {
  border-bottom: 12px solid black;
}

.spacer-2 tr:not(:last-child) td {
  border-bottom: 15px solid black;
}

.spacer-3 tr:not(:last-child) td {
  border-bottom: 20px solid black;
}

</style>
<table>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
</table>
<table class="spacer-1">
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
</table>
<table class="spacer-2">
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
</table>
<table class="spacer-3">
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr><td><span></span></td><td><span></span></td></tr>
</table>