Fix size of tables in flow layout (#31455)

* Fix size of tables in flow layout

The contents of a table can make it bigger than what we would expect
from its 'width', 'min-width', 'height' and ' min-height' properties.
Also, 'width: auto' doesn't stretch it to fill the containing block.

We had to refactor the resolution of margins to happen after layout,
otherwise 'auto' margins wouldn't align correctly.

Co-authored-by: Martin Robinson <mrobinson@igalia.com>

* Feedback

* Consistently use `containing_block_for_table` in table layout

* Update test result

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Oriol Brufau 2024-03-02 02:39:41 +01:00 committed by GitHub
parent c23999941a
commit 50fdb82246
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
54 changed files with 289 additions and 388 deletions

View file

@ -1,12 +1,3 @@
[computing-column-measure-0.html]
[Checking intermediate min-content width for span 1 (1)]
expected: FAIL
[Checking intermediate min-content width for span 1 (2)]
expected: FAIL
[Checking intermediate min-content width for span 1 (3)]
expected: FAIL
[Checking intermediate min-content width for span 1 (4)]
expected: FAIL

View file

@ -1,3 +0,0 @@
[computing-column-measure-2.html]
[Table recalculations should match the reference]
expected: FAIL

View file

@ -1,3 +0,0 @@
[computing-table-width-1.html]
[The box should be 300px since that is the size of the content]
expected: FAIL

View file

@ -1,3 +0,0 @@
[distribution-algo-1.html]
[The box should be 300px since that is the size of the content]
expected: FAIL

View file

@ -1,3 +0,0 @@
[distribution-algo-2.html]
[The box should be 300px since that is the size of the content]
expected: FAIL

View file

@ -1,3 +0,0 @@
[distribution-algo-min-content-guess.html]
[The box should be 300px since that is the size of the content]
expected: FAIL