gecko-dev/testing/web-platform/tests/css/css-tables/dynamic-table-cell-height.html
Ian Kilpatrick 96e40f8d5e Bug 1555766 [wpt PR 17104] - [LayoutNG] Make table-cells always calculate thier block-size to the intrinsic size., a=testonly
Automatic update from web-platform-tests
[LayoutNG] Make table-cells always calculate thier block-size to the intrinsic size.

Prior to this patch, during simplified layout we'd calculate the block-size
of a table-cell the same as any node. This missed the specific table-cell
logic within the NGBlockLayoutAlgorithm.

This moves this logic down into the ComputeBlockSizeForFragment method.

Bug: 968016
Change-Id: Idb4d76bb199d1690705e1f24d9de3ea53e2c8af4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1637219
Reviewed-by: Emil A Eklund <eae@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664843}

--

wp5At-commits: 16d2a2767afdb9b92a544b7602f8a441cf554380
wpt-pr: 17104
2019-06-19 11:06:22 -07:00

17 lines
689 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
<link rel="help" href="https://crbug.com/968016">
<script src="/common/reftest-wait.js"></script>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: table-cell; background: red; height: 50px;">
<div style="width: 100px; height: 100px; background: green; position: relative;">
<div id="target" style="position: absolute; width: 10px; height: 10px;"></div>
</div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.top = '10px';
document.body.offsetTop;
takeScreenshot();
</script>