[wpt-sync] Sync PR 45102 - Obey white-space when intrinsically sizing an IFC
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 45102 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/45102
Details from upstream follow.
Oriol Brufau <obrufau@igalia.com> wrote:
Obey white-space when intrinsically sizing an IFC
<!-- Please describe your changes on the following line: -->
The old logic was assuming that all whitespace was a break opportunity,
and that no newlines would be preserved.Note that text shaping considers the advance of a newline to be the same
as a space. This was problematic because if we have a segment with a
preserved space and newline, only the advance of the space should
contrinute to the size of the block container. Therefore, I'm changing
the breaker logic in other to have newline characters in their own
segment.Then glyph_run_is_whitespace_ending_with_preserved_newline can just be
renamed to glyph_run_is_preserved_newline.Reviewed in servo/servo#31660
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Description
•