layout: Add *very* basic support for table layout (#31121)

* layout: Add *very* basic support for table layout

This is the first step to proper table layout. It implements a naive
layout algorithm, notably only taking into account the preferred widths
of the first table row. Still, it causes some float tests to start
passing, so turn on the `layout.tables.enabled` preference for those
directories.

Co-authored-by: Oriol Brufau <obrufau@igalia.com>

* Address review comments

* Fix a crash with rowspan=0

* Turn on pref and update results for `/css/css-tables` and `/css/CSS2/tables`

---------

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Martin Robinson 2024-01-19 14:20:20 +01:00 committed by GitHub
parent 3d520f2668
commit fc31e69f79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
115 changed files with 842 additions and 315 deletions

View file

@ -1,10 +1,4 @@
[baseline-table.html]
[.container 1]
expected: FAIL
[.container 2]
expected: FAIL
[.container 3]
expected: FAIL
@ -17,18 +11,6 @@
[.container 6]
expected: FAIL
[.container 7]
expected: FAIL
[.container 8]
expected: FAIL
[.container 9]
expected: FAIL
[.container 10]
expected: FAIL
[.container 11]
expected: FAIL
@ -40,6 +22,3 @@
[.container 14]
expected: FAIL
[.container 15]
expected: FAIL

View file

@ -22,3 +22,15 @@
[table 10]
expected: FAIL
[table 4]
expected: FAIL
[table 5]
expected: FAIL
[table 12]
expected: FAIL
[table 13]
expected: FAIL

View file

@ -59,9 +59,6 @@
[table 20]
expected: FAIL
[table 21]
expected: FAIL
[table 22]
expected: FAIL

View file

@ -64,3 +64,6 @@
[table 24]
expected: FAIL
[table 20]
expected: FAIL

View file

@ -5,11 +5,5 @@
[table 2]
expected: FAIL
[table 3]
expected: FAIL
[table 5]
expected: FAIL
[table 6]
expected: FAIL

View file

@ -31,3 +31,6 @@
[table 12]
expected: FAIL
[table 10]
expected: FAIL

View file

@ -2,20 +2,5 @@
[.t 6]
expected: FAIL
[.t 10]
expected: FAIL
[.t 11]
expected: FAIL
[.t 12]
expected: FAIL
[.t 13]
expected: FAIL
[.t 14]
expected: FAIL
[.t 15]
expected: FAIL

View file

@ -13,3 +13,21 @@
[table 11]
expected: FAIL
[table 1]
expected: FAIL
[table 4]
expected: FAIL
[table 5]
expected: FAIL
[table 6]
expected: FAIL
[table 7]
expected: FAIL
[table 10]
expected: FAIL