Skip to content

layout: Let min-content size break before each unbreakable segment run - #55466

Closed
servo-wpt-sync wants to merge 1 commit into
web-platform-tests:masterfrom
servo:servo_export_39830
Closed

layout: Let min-content size break before each unbreakable segment run#55466
servo-wpt-sync wants to merge 1 commit into
web-platform-tests:masterfrom
servo:servo_export_39830

Conversation

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

We were only allowing a soft wrap opportunity before the first run in a TextRunSegment, but not before the other runs. For example, this meant that the min-content size of 中文中文 would be 4ic instead of just 1ic.

The change brings the logic in ContentSizesComputation::process_item() closer to TextRunSegment::layout_into_line_items().

Testing: Adding new tests. There is also a new failure because we don't support word-break: auto-phrase.
Fixes: #39728

Reviewed in servo/servo#39830

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator Author

👋 Downstream pull request (servo/servo#39830) no longer contains any upstreamable changes. Closing pull request without merging.

@servo-wpt-sync
servo-wpt-sync deleted the servo_export_39830 branch October 16, 2025 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants