Improve intrinsic sizing and white-space handling around forced line breaks (#30351)

* Take forced line breaks into account for intrinsic size

Fixes #30350.

* Don't linebreak on collapsible whitespace

This whitespace can hang off the end of the line, because it will be
trimmed LineItem layout.

* Update float placement after line breakage

Also don't ever line break for collapsible whitespace.

* Fix a few more test cases and clean up

* Renaming according to review comments
This commit is contained in:
Martin Robinson 2023-09-15 13:12:59 +02:00 committed by GitHub
parent abca586e0a
commit 38d9a5eae0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 96 additions and 78 deletions

View file

@ -1,2 +0,0 @@
[pre-line-051.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[pre-line-052.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[pre-wrap-051.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[pre-wrap-052.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-intrinsic-size-019.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-intrinsic-size-020.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-pre-051.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-pre-052.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[white-space-zero-fontsize-001.html]
expected: FAIL