layout: Implement keyword sizes for block layout heuristics (#34695)

Block layout uses some heuristics to guess whether margins are separated
by clearance and then don't collapse. These heuristics now take the
min-content, max-content, fit-content and stretch sizing keywords into
account.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2024-12-23 03:00:37 -08:00 committed by GitHub
parent 2ab66ce678
commit 6be0a64939
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 212 additions and 63 deletions

View file

@ -243091,6 +243091,58 @@
{}
]
],
"float-clearance-with-margin-collapse-and-fit-content-and-padding-percentage-001.html": [
"d5e293f85e9cde73c1efa60d66ccdea4618512db",
[
null,
[
[
"/css/reference/ref-filled-green-100px-square.xht",
"=="
]
],
{}
]
],
"float-clearance-with-margin-collapse-and-fit-content-and-padding-percentage-002.html": [
"a9e0e95522403b396a86aac3a5400ef8693c56d4",
[
null,
[
[
"/css/reference/ref-filled-green-100px-square.xht",
"=="
]
],
{}
]
],
"float-clearance-with-margin-collapse-and-fit-content-and-padding-percentage-003.html": [
"0e27b9ef7d16c19c76fab7314e089a122b8b9123",
[
null,
[
[
"/css/reference/ref-filled-green-100px-square.xht",
"=="
]
],
{}
]
],
"float-clearance-with-margin-collapse-and-fit-content-and-padding-percentage-004.html": [
"6d08bd81a73703fd068849117c0e12210097adee",
[
null,
[
[
"/css/reference/ref-filled-green-100px-square.xht",
"=="
]
],
{}
]
],
"grid-item-image-percentage-min-height-computes-as-0.html": [
"ef3da03100229a846ca77156bdf34e5e37c92508",
[

View file

@ -0,0 +1,2 @@
[float-clearance-with-margin-collapse-and-fit-content-and-padding-percentage-003.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[float-clearance-with-margin-collapse-and-fit-content-and-padding-percentage-004.html]
expected: FAIL