fune/testing/web-platform/tests/css/css-tables/border-collapse-dynamic-oof.html
Ian Kilpatrick 529d68419d Bug 1782292 [wpt PR 35278] - [tables] Fix collapsed-borders paint issue., a=testonly
Automatic update from web-platform-tests
[tables] Fix collapsed-borders paint issue.

We introduced some slightly more complex paint logic in patch:
https://chromium-review.googlesource.com/c/chromium/src/+/3646093
... to deal with fragmented table.

The new paint logic wasn't the root cause of the bug, rather the two new
fields on the physical fragment:
 - table_section_row_offsets
 - table_section_start_row_index

If simplified layout was triggered the simplified layout algorithm
didn't copy these fields over to the new fragment, which caused the
borders to not paint.

This patch performs the necessary copying of the fields.

Bug: 1348154
Change-Id: I7836dc3f0b0b09bbd5ece69f289cd5f6769105ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3792095
Reviewed-by: Philip Rogers <pdr@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1029955}

--

wpt-commits: 3085a8619ead4447c782a23db06d00b4bff4a257
wpt-pr: 35278
2022-08-03 10:10:17 +00:00

15 lines
666 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1348154">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="width: 100px; height: 100px; background: red;">
<div style="display: table; border-collapse: collapse; border: solid green 50px; width: 0; height: 0;">
<div style="display: table-cell; position: relative;">
<div id="target" style="position: absolute;"></div>
</div>
</div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.top = '10px';
</script>