gecko-dev/testing/web-platform/tests/css/css-flexbox/table-as-item-change-cell.html
Morten Stenshorne 3ba015f2e0 Bug 1452756 [wpt PR 10384] - Make sure table flex/grid items recalculate min/max widths., a=testonly
Automatic update from web-platform-testsMake sure table flex/grid items recalculate min/max widths.

We used to rely on this taking place lazily via
MinPreferredLogicalWidth(), but that method won't necessarily be called
if the table is a flex/grid item.

Bug: 810327
Change-Id: Ic817bd109544d4b9e961552d0a3a38f127e6e548
Reviewed-on: https://chromium-review.googlesource.com/1000781
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549479}

--

wpt-commits: 069680cf1da5c762e912246dbcc2d82a280cd48d
wpt-pr: 10384
wpt-commits: 069680cf1da5c762e912246dbcc2d82a280cd48d
wpt-pr: 10384
2018-04-20 21:59:00 +01:00

21 lines
1 KiB
HTML

<!DOCTYPE html>
<title>CSS Flexbox Test: Flex item as table, change contents of cell</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#layout-algorithm" title="9. Flex Layout Algorithm">
<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="display:flex; flex-direction:column; width:100px; background:green;">
<div style="position:relative; z-index:-1; display:table; width:100%; height:100px; background:hotpink;">
<div style="display:table-cell; width:100px;"></div>
<div id="cell" style="display:table-cell;">
<div id="child" style="display:none; color:red;">
<!-- Add some whitespace after the word "FAIL", in case of negative glyph bearings. -->
FAIL&nbsp;
</div>
</div>
</div>
</div>
<script>
document.body.offsetTop;
document.getElementById("child").style.display = "block";
</script>