Files
ladybird/Tests/LibWeb/Text/input/wpt-import/css/css-tables/colspan-001.html
Tim Ledbetter 0b346d1952 LibWeb: Distribute colspan cell width equally when baseline is zero
This matches the behavior of other engines.
2026-02-06 11:37:14 +00:00

32 lines
1.3 KiB
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1430449">
<p>There should be five squares.</p>
<table cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" style="background:blue;" data-expected-width="75" data-expected-height="75">
<div style="width:50px; height:75px;"></div>
</td>
<td colspan="2" style="background:green;" data-expected-width="75" data-expected-height="75">
<div style="width:50px; height:75px;"></div>
</td>
</tr>
<tr>
<td style="background:black;" data-expected-width="50" data-expected-height="50">
<div style="width:50px; height:50px;"></div>
</td>
<td colspan="2" style="background:lime;" data-expected-width="50" data-expected-height="50">
<div style="width:50px; height:50px;"></div>
</td>
<td style="background:hotpink;" data-expected-width="50" data-expected-height="50">
<div style="width:50px; height:50px;"></div>
</td>
</tr>
</table>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/check-layout-th.js"></script>
<script>
checkLayout('td')
</script>