Bug 1662565 [wpt PR 25341] - [layout] Make an OOF table-layout:fixed not report an infinite max-size, a=testonly

Automatic update from web-platform-tests
[layout] Make an OOF table-layout:fixed not report an infinite max-size

Previously tables ignored the given fixed-inline-size. However due to
a fix for grid/flex:
a0b54e201c
they started respecting them.

The uncovered a bug in the NG out-of-flow calculation, (given that these
set a fixed-inline-size on children).

An OOF table with "table-layout: fixed", and a %-width will force its
max-content size to infinity, consuming all available space.

This patch only performs this adjustment if the table *isn't* OOF.

Bug: 1123475
Change-Id: I8784eb3ce4294132f6e6b7cb95ad71464c2380f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2388266
Reviewed-by: Aleks Totic <atotic@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803639}

--

wpt-commits: f135c6d792d0d5a50a8bf948f2eaf19a96d48787
wpt-pr: 25341
This commit is contained in:
Ian Kilpatrick 2020-09-07 13:03:32 +00:00 коммит произвёл moz-wptsync-bot
Родитель 1ba1f0f372
Коммит 38dfc70dce
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,9 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#abspos">
<link rel="help" href="https://crbug.com/1123475">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="When sizing abspos tables with `table-layout: fixed`, the max-content size shouldn't be infinite.">
<p>Test passes if there is a filled green square.</p>
<div style="position: relative; width: 200px;">
<table style="position: absolute; width: 50%; height: 100px; table-layout: fixed; background: green;"></table>
</div>