From d5fcc5a5d50d270a1e96d91507a5c224240300bb Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Mon, 27 Jan 2025 07:02:32 -0800 Subject: layout: Improve fixed table layout (#35170) If `width` is indefinite, treat the outer size as zero, instead of treating the content size as zero and then adding padding and borders. Also, we don't want a default minimum of zero to get added padding and borders, and then defeat the point baove. So just ignore minimums and maximums. That seems to roughly match what other browsers do, but as usual, the details are not interoperable, e.g. some browsers may obey min or max sizing properties in some cases. Signed-off-by: Oriol Brufau --- tests/wpt/meta/css/CSS2/borders/border-applies-to-006.xht.ini | 2 -- tests/wpt/meta/css/CSS2/borders/border-color-applies-to-006.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e07.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e08.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e09.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e10.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e11.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e12.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f03.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f04.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f05.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f06.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f07.xht.ini | 2 -- tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f08.xht.ini | 2 -- 14 files changed, 28 deletions(-) delete mode 100644 tests/wpt/meta/css/CSS2/borders/border-applies-to-006.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/borders/border-color-applies-to-006.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e07.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e08.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e09.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e10.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e11.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e12.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f03.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f04.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f05.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f06.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f07.xht.ini delete mode 100644 tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f08.xht.ini (limited to 'tests/wpt') diff --git a/tests/wpt/meta/css/CSS2/borders/border-applies-to-006.xht.ini b/tests/wpt/meta/css/CSS2/borders/border-applies-to-006.xht.ini deleted file mode 100644 index d135fb40166..00000000000 --- a/tests/wpt/meta/css/CSS2/borders/border-applies-to-006.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[border-applies-to-006.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/borders/border-color-applies-to-006.xht.ini b/tests/wpt/meta/css/CSS2/borders/border-color-applies-to-006.xht.ini deleted file mode 100644 index 88916941dc5..00000000000 --- a/tests/wpt/meta/css/CSS2/borders/border-color-applies-to-006.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[border-color-applies-to-006.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e07.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e07.xht.ini deleted file mode 100644 index 992c95d7f1a..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e07.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003e07.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e08.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e08.xht.ini deleted file mode 100644 index 2229fd68f72..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e08.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003e08.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e09.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e09.xht.ini deleted file mode 100644 index 975703becce..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e09.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003e09.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e10.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e10.xht.ini deleted file mode 100644 index 1729d8ed270..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e10.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003e10.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e11.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e11.xht.ini deleted file mode 100644 index c68abad62fb..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e11.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003e11.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e12.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e12.xht.ini deleted file mode 100644 index 9bf489dc19c..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003e12.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003e12.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f03.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f03.xht.ini deleted file mode 100644 index bb669562829..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f03.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003f03.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f04.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f04.xht.ini deleted file mode 100644 index 2fac48ecc06..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f04.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003f04.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f05.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f05.xht.ini deleted file mode 100644 index 00957756ac4..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f05.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003f05.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f06.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f06.xht.ini deleted file mode 100644 index fdf1ce8e25e..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f06.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003f06.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f07.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f07.xht.ini deleted file mode 100644 index 8615dc4a13b..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f07.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003f07.xht] - expected: FAIL diff --git a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f08.xht.ini b/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f08.xht.ini deleted file mode 100644 index 02211151900..00000000000 --- a/tests/wpt/meta/css/CSS2/tables/fixed-table-layout-003f08.xht.ini +++ /dev/null @@ -1,2 +0,0 @@ -[fixed-table-layout-003f08.xht] - expected: FAIL -- cgit v1.2.3