forked from mirrors/gecko-dev
Automatic update from web-platform-tests [TablesNG] Fix footer ordering As the wise mstensho said: CSS 2.1 says: ( https://www.w3.org/TR/CSS22/tables.html#table-display ) table-footer-group (In HTML: TFOOT) Like 'table-row-group', but for visual formatting, the row group is always displayed after all other rows and row groups and before any bottom captions. [...] If a table contains multiple elements with 'display: table-footer-group', only the first is rendered as a footer; the others are treated as if they had 'display: table-row-group'. Change-Id: Ief31b1bd7e21bb8ecd65f234b9580cb9d1dc0fd5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2659405 Commit-Queue: Aleks Totic <atotic@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#848972} -- wpt-commits: 46a226ef16da4f32dc8468a000649a803c40ed2c wpt-pr: 27414
64 lines
1.2 KiB
HTML
64 lines
1.2 KiB
HTML
<!doctype html>
|
|
<title>CSS Test: Table section ordering</title>
|
|
<link rel="author" href="mailto:atotic@chromium.org">
|
|
<link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#table-display">
|
|
<link rel="match" href="row-group-order-ref.html">
|
|
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
|
|
<style>
|
|
table {
|
|
font: 8px Ahem;
|
|
border-collapse: collapse;
|
|
}
|
|
thead, tbody, tfoot {
|
|
border: 10px solid;
|
|
}
|
|
.first {
|
|
border-color: green;
|
|
}
|
|
.second {
|
|
border-color: blue;
|
|
}
|
|
.third {
|
|
border-color: yellow;
|
|
}
|
|
tbody {
|
|
border-color: orange;
|
|
}
|
|
td {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
</style>
|
|
|
|
<table>
|
|
<tbody>
|
|
<tr><td>body 1</td></tr>
|
|
</tbody>
|
|
<thead class="first">
|
|
<tr><td>head 1</td></tr>
|
|
</thead>
|
|
<thead class="second">
|
|
<tr><td>head 2</td></tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr><td>body 2</td></tr>
|
|
</tbody>
|
|
<thead class="third">
|
|
<tr><td>head 3</td></tr>
|
|
</thead>
|
|
<tfoot class="first">
|
|
<tr><td>foot 1</td></tr>
|
|
</tfoot>
|
|
<tbody>
|
|
<tr><td>body 3</td></tr>
|
|
</tbody>
|
|
<tfoot class="second">
|
|
<tr><td>foot 2</td></tr>
|
|
</tfoot>
|
|
<tbody>
|
|
<tr><td>body 4</td></tr>
|
|
</tbody>
|
|
<tfoot class="third">
|
|
<tr><td>foot 3</td></tr>
|
|
</tfoot>
|
|
</table>
|