fune/testing/web-platform/tests/css/css-tables/chrome-rowspan-bug.html
Aleks Totic 11d1c5145c Bug 1694477 [wpt PR 27746] - [TablesNG] Fix wikipedia, rowspan problem, a=testonly
Automatic update from web-platform-tests
[TablesNG] Fix wikipedia, rowspan problem

FindNextFreeColumn assumed rowspan cells were ascending by
start column. This was not the case.

Fix: sort rowspan cells at the end of every row.

Bug: 1180592
Change-Id: I8a14a06ed68849346e84b0af4e851e4099aae011
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2716104
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#856844}

--

wpt-commits: 17456d8572e32b8d26825b683202212ffa18f744
wpt-pr: 27746
2021-03-15 08:33:06 +00:00

45 lines
934 B
HTML

<!doctype html>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<title>caption</title>
<meta name="flags" content="ahem">
<link rel="author" title="Aleks Totic" href="atotic@chromium.org" />
<link rel="help" href="https://crbug.com/1180592"/>
<style>
main table {
border-spacing: 0;
}
main table td {
border: 1px solid black;
padding: 0;
width: 50px;
height: 25px;
}
</style>
<main>
<table>
<tbody>
<tr>
<td></td>
<td id="target" rowspan=5></td>
<td></td>
<td></td>
</tr>
<tr>
<td rowspan=5></td>
<td rowspan=5></td>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</tbody>
</table>
</main>
<script>
test(_ => {
assert_equals(document.body.querySelector("#target").offsetHeight, 81);
}, "table tracks correct use of rowspan");
</script>