LibWeb/Layout: Improve grid item sizing for replaced boxes

With this change we no longer stretch "width: auto" for replaced
elements and also use "width calculation rules for block-level replaced
elements", like suggested by the spec.
This commit is contained in:
Aliaksandr Kalenik 2025-03-20 00:44:06 +01:00 committed by Alexander Kalenik
commit 1f8e7c3cca
Notes: github-actions[bot] 2025-03-20 02:37:49 +00:00
13 changed files with 83 additions and 54 deletions

View file

@ -2,6 +2,7 @@ Harness status: OK
Found 2 tests
2 Fail
1 Pass
1 Fail
Fail .before 1
Fail .after 2
Pass .after 2

View file

@ -2,6 +2,7 @@ Harness status: OK
Found 2 tests
2 Fail
Fail .before 1
1 Pass
1 Fail
Pass .before 1
Fail .after 2

View file

@ -2,7 +2,6 @@ Harness status: OK
Found 2 tests
1 Pass
1 Fail
2 Pass
Pass .before 1
Fail .after 2
Pass .after 2

View file

@ -2,7 +2,6 @@ Harness status: OK
Found 2 tests
1 Pass
1 Fail
Fail .before 1
2 Pass
Pass .before 1
Pass .after 2

View file

@ -2,6 +2,7 @@ Harness status: OK
Found 2 tests
2 Fail
1 Pass
1 Fail
Fail .before 1
Fail .after 2
Pass .after 2

View file

@ -4,5 +4,5 @@ Found 2 tests
1 Pass
1 Fail
Fail .before 1
Pass .after 2
Pass .before 1
Fail .after 2

View file

@ -2,7 +2,6 @@ Harness status: OK
Found 2 tests
1 Pass
1 Fail
2 Pass
Pass .before 1
Fail .after 2
Pass .after 2

View file

@ -2,7 +2,6 @@ Harness status: OK
Found 2 tests
1 Pass
1 Fail
Fail .before 1
2 Pass
Pass .before 1
Pass .after 2

View file

@ -2,11 +2,11 @@ Harness status: OK
Found 6 tests
1 Pass
5 Fail
3 Pass
3 Fail
Fail .before 1
Fail .before 2
Pass .before 2
Fail .before 3
Fail .after 4
Pass .after 5
Fail .after 6
Pass .after 6

View file

@ -2,11 +2,11 @@ Harness status: OK
Found 6 tests
1 Pass
5 Fail
3 Pass
3 Fail
Fail .before 1
Pass .before 2
Fail .before 3
Pass .before 3
Fail .after 4
Fail .after 5
Pass .after 5
Fail .after 6