1
0
Fork 0
firefox/testing/web-platform/tests/css/css-tables/visibility-collapse-border-spacing-002.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

32 lines
916 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-tables/#visibility-collapse-rendering">
<link rel="help" href="https://drafts.csswg.org/css-tables/#border-spacing-property">
<link rel="match" href="../reference/ref-filled-green-200px-square.html">
<meta name="assert" content="
A cell spanning two rows is typically at least as tall as the vertical border-spacing.
However, in this case the 2nd row is collapsed, so the cell should be 0px tall.
This matches Gecko and Blink.">
<style>
table {
border-spacing: 50px 100px;
background: green;
}
td {
width: 100px;
padding: 0;
background: red;
}
tr + tr {
visibility: collapse;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<table>
<tr>
<td rowspan="2"></td>
</tr>
<tr></tr>
</table>