blob: c4114a145df0c18ee6745c3cb3e74388609a9eb9 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
<!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">
<link rel="match" href="border-collapse-empty-row-ref.html">
<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 {
height: 2px;
}
.spacer-2 {
height: 5px;
}
.spacer-3 {
height: 10px;
}
</style>
<!-- Empty rows -->
<table>
<tr><td><span></span></td><td><span></span></td></tr>
<tr></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr></tr>
<tr><td><span></span></td><td><span></span></td></tr>
</table>
<!-- Empty rows, sized less than collapsed border offset (10px / 2 = 5px). -->
<table>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-1"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-1"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-1"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-1"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-1"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
</table>
<!-- Empty rows, sized exactly at collapsed border offset. -->
<table>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-2"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-2"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-2"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-2"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-2"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
</table>
<!-- Empty rows, sized larger than collapsed border offset. -->
<table>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-3"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-3"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-3"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-3"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
<tr class="spacer-3"></tr>
<tr><td><span></span></td><td><span></span></td></tr>
</table>
|