Files
sousa-gecko/testing/web-platform/tests/css/css-text
Sergey Bartosh 68a45072a3 Bug 2053319 [wpt PR 61131] - Fix infinite recursion in text-fit consistent layout, a=testonly
Automatic update from web-platform-tests
Fix infinite recursion in text-fit consistent layout

When CssTextFit is enabled and text-fit target is consistent,
BlockLayoutAlgorithm::LayoutInlineChild computes the scale by cloning
itself. However, since the cloned algorithm is not aware it is in the
measuring phase, it creates yet another clone and recurses infinitely.
This adds an is_measuring_text_fit_ flag to prevent infinite layout
loops.

Bug: 527217054
Change-Id: Ic6b35e7aa290dde8daf2026a59c00a2e347d4231
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8010518
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Sergey Bartosh <srgbrt@google.com>
Reviewed-by: James Scott <jamescscott@google.com>
Cr-Commit-Position: refs/heads/main@{#1658519}

--

wpt-commits: dd0af9466f52b495d727f47e6f0312835ef148c2
wpt-pr: 61131
2026-07-12 11:57:08 +00:00
..
…
…
…