LibWeb: Allow table fixup to find internal table boxes in inline parents

This commit is contained in:
Tim Ledbetter
2026-02-10 13:11:40 +00:00
committed by Andreas Kling
parent e9f5df2131
commit 6cf506d980
Notes: github-actions[bot] 2026-02-11 08:59:50 +00:00
3 changed files with 40 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
<!DOCTYPE html>
<title>CSS Test: CSS Tables fixup merge anonymous inline table siblings (cell + cell)</title>
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
<link rel="match" href="../../../../expected/wpt-import/css/css-tables/../reference/ref-filled-green-100px-square-only.html">
<link rel="help" href="https://drafts.csswg.org/css-tables/#fixup-algorithm">
<style>
.cell {
display: table-cell;
}
.filler {
width: 50px;
height: 100px;
background-color: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div style="width:100px">
<span>
<span class="cell">
<div class="filler"></div>
</span>
<span id="rm">Remove me</span>
<span class="cell">
<div class="filler"></div>
</span>
</span>
</div>
<script>
rm.offsetTop;
rm.remove();
</script>