fune/testing/web-platform/tests/css/css-tables/crashtests/dynamic-recompute-baseline.html
Ian Kilpatrick e6d905e612 Bug 1760717 [wpt PR 33290] - [tables] Fix crash when recomputing baselines., a=testonly
Automatic update from web-platform-tests
[tables] Fix crash when recomputing baselines.

When we use the layout cache-slot for recomputing the row baselines
this can place the layout-tree in an inconsistent state.

We have two options to fix this, either use the measure slot (however
this may miss - and potentially also leave tree in inconsistent state?)

This fix using the disable-side-effects scope to prevent setting invalid
layout results on the tree.

Bug: 1308047
Change-Id: Ic43707ff7704485838e21668aed3c41fd048916a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3540916
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#983790}

--

wpt-commits: 9bf7fbbe034197810648a18ddce13bfae51296a0
wpt-pr: 33290
2022-03-26 21:58:11 +00:00

12 lines
294 B
HTML

<!DOCTYPE html>
<table>
<caption id="target"></caption>
<td>
<div style="display: inline-block; height: 10%;"></div>
</td>
<td style="vertical-align: baseline;"></td>
</table>
<script>
document.body.offsetTop;
document.getElementById('target').style.height = '100px';
</script>