layout: Take text-indent into account in min/max-content inline sizes (#39230)

The min-content and max-content inline sizes of an inline formatting
contentext need to take `text-indent` into account. Note it can be set
to a negative amount, so the `ContentSizesComputation` logic needs some
tweaks to handle it well.

Testing: Fixes various WPT tests

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-09-13 14:20:39 +08:00 committed by GitHub
parent d1c3e5f58f
commit c11670b067
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 38 additions and 41 deletions

View file

@ -1,2 +0,0 @@
[text-indent-applies-to-003.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-indent-intrinsic-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-indent-intrinsic-002.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-indent-intrinsic-003.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-indent-intrinsic-004.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-indent-min-max-content-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[calc-text-indent-intrinsic-1.html]
expected: FAIL