layout: Stop ignoring containing block padding for the static position (#36051)

The static position rect is calculated assuming that the containing
block would be established by the content box of some ancestor, but the
actual containing block is established by the padding box.
So we need to add the padding of that ancestor.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-03-19 12:47:52 +01:00 committed by GitHub
parent a9afc631ae
commit 86341da885
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 49 additions and 1347 deletions

View file

@ -1,51 +1,6 @@
[align-content-block-003.html]
[.test 1: start]
expected: FAIL
[.test 2: center]
expected: FAIL
[.test 3: end]
expected: FAIL
[.test 4: baseline]
expected: FAIL
[.test 5: last baseline]
expected: FAIL
[.test 6: flex-start]
expected: FAIL
[.test 7: flex-end]
expected: FAIL
[.test 8: unsafe start]
expected: FAIL
[.test 9: unsafe center]
expected: FAIL
[.test 10: unsafe end]
expected: FAIL
[.test 11: safe start]
expected: FAIL
[.test 12: safe center]
expected: FAIL
[.test 13: safe end]
expected: FAIL
[.test 14: space-evently]
expected: FAIL
[.test 15: space-between]
expected: FAIL
[.test 16: space-around]
expected: FAIL
[.test 17: normal]
expected: FAIL