gecko-dev/testing/web-platform/tests/css/css-tables/percent-width-cell-dynamic.html
Ian Kilpatrick a093016272 Bug 1568267 [wpt PR 18005] - [LayoutNG] Remove shrink-to-fit optimization., a=testonly
Automatic update from web-platform-tests
[LayoutNG] Remove shrink-to-fit optimization.

For NG types this isn't needed anymore. The NG types now use:
CalculateSizeBasedLayoutCacheStatusWithGeometry

Which determines the size of a fragment ahead of time, and applies the
same optimization.

The only thing that we now miss, is things which are sized shrink-to-fit
which use legacy layout.

We couldn't apply this optimization to shrink-to-fit tables, as they
may have %-based inline-sized children which affect their (final) inline
size.

Bug: 984642
Change-Id: I0d0b584f31947bb674f4e7e5d88d7af6cf5d9d98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1662535
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680095}

--

wpt-commits: f77e198cb7d4d59be5ceebd36738333c3d1930fd
wpt-pr: 18005
2019-07-31 02:54:06 +00:00

23 lines
783 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://crbug.com/984642" />
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
html { overflow: hidden; }
</style>
<p>Test passes if there is a filled green square.</p>
<div id="target">
<div style="width: 10%;">
<div style="display: inline-table;">
<div style="display: table-cell; width: 100%;">
<span style="display: inline-block; width: 100%; height: 100px; background: green;"></span>
</div>
<div style="display: table-cell;">
<span style="display: inline-block; width: 10px; height: 100px; background: green;"></span>
</div>
</div>
</div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = '1000px';
</script>