LibWeb: Use fragment extents for orthogonal inline widths

Inline formatting contexts in vertical writing modes were measuring
intrinsic width from the line box width. That width still tracks the
line-height-sized horizontal span, so shrink-to-fit abspos sizing could
stay at 50px even when the text fragments only covered 25px.

Measure the physical horizontal extent from the line box fragments
instead, including the float-aware block formatting context path. This
makes orthogonal inline content report the correct intrinsic width.
This commit is contained in:
Andreas Kling
2026-04-04 20:29:20 +02:00
committed by Andreas Kling
parent eb8943cd55
commit 9526dfbef3
Notes: github-actions[bot] 2026-04-04 22:04:16 +00:00
9 changed files with 88 additions and 18 deletions

View File

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

View File

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

View File

@@ -2,5 +2,5 @@ Harness status: OK
Found 1 tests
1 Fail
Fail .grid 1
1 Pass
Pass .grid 1