Files
sousa-gecko/testing/web-platform/tests/css/css-tables/crashtests/remove-table-column-group.html
T
Oriol Brufau 74d4976706 Bug 2028782 [wpt PR 58921] - layout: Update group index when reusing table-column box, a=testonly
Automatic update from web-platform-tests
layout: Update group index when reusing table-column box

Even if we can reuse the box, its column group index may have changed,
e.g. due to the removal of a previous column group. So just update it.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

--

wpt-commits: 8b52bbdf73d05bad5f635e86d1734a17225acad2
wpt-pr: 58921
2026-04-17 08:36:00 +00:00

27 lines
869 B
HTML

<!DOCTYPE html>
<html class="test-wait">
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
<link rel="help" href="https://github.com/servo/servo/issues/39142">
<meta name="assert" content="Removing a column group should not crash">
<div style="display: table">
<div style="display: table-column-group" id="colgroup"></div>
<div style="display: table-column-group">
<!-- This column is in the 2nd column group. But after removing the
original 1st column group, the column needs to be associated with
the new 1st column group, since there is no 2nd column group
anymore. -->
<div style="display: table-column"></div>
</div>
<div style="display: table-cell"></div>
</div>
<script>
window.onload = function() {
colgroup.remove();
document.documentElement.classList.remove("test-wait")
};
</script>
</html>