mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
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
17 lines
689 B
HTML
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>
|