[wpt-sync] Sync PR 60100 - text-fit: Ignore fragmentation when measuring scaling factor
Categories
(Core :: Layout: Text and Fonts, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 60100 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/60100
Details from upstream follow.
Kent Tamura <tkent@chromium.org> wrote:
text-fit: Ignore fragmentation when measuring scaling factor
When "text-fit: [shrink|grow] consistent" is used inside a
block-fragmented container (e.g., multicolumn), the measurement pass
used to calculate the scaling factor should ignore fragmentation.Previously, the measurement layout (cloned_algorithm) inherited the
fragmentation context, which could lead to incorrect scaling factors
because it only accounted for content within the current fragment rather
than the entire block.This patch updates BlockLayoutAlgorithm to:
- Create a ConstraintSpace without fragmentation for the measurement
pass.- Ensure fragmentation-specific inputs (break tokens, early breaks, and
spanner paths) are cleared in the cloned layout parameters.This ensures the scaling factor is calculated based on the full content
height/width before any fragmentation occurs.Bug: 417306102, 515046056
Change-Id: Ie532ee1c7816781aecd05b7a0e34681d66b09399
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7867041
Reviewed-by: Morten Stenshorne \<mstensho@chromium.org>
Commit-Queue: Kent Tamura \<tkent@chromium.org>
Auto-Submit: Kent Tamura \<tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1634732}
| Assignee | ||
Updated•6 months ago
|
| Assignee | ||
Comment 1•6 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=8b0a31f9ecb7ea62b550865cf1c24c5851c9d01f
| Assignee | ||
Comment 2•6 months ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 24 tests
Status Summary
Firefox
OK : 4
PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 3[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 5[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 7[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 24[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
FAIL: 1
Safari
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-text/text-fit/hittest.html [wpt.fyi]
- Text selection by a pointer device should work correctly:
FAIL
- Text selection by a pointer device should work correctly:
- /css/css-text/text-fit/line-height.html [wpt.fyi]
- line-height:normal should be scaled:
FAIL - line-height:<number> should be scaled:
FAIL
- line-height:normal should be scaled:
- /css/css-text/text-fit/text-autospace.html [wpt.fyi]
- "text-autospace" and "consistent" work fine:
FAIL - "text-autospace" and "per-line-all" work fine:
FAIL
- "text-autospace" and "consistent" work fine:
- /css/css-text/text-fit/text-spacing-trim-fit-width.html [wpt.fyi]
- [consistent] Check that text-spacing-trim: trim-start scales larger than none because of trimmed start margin:
FAIL - [per-line-all] Check that text-spacing-trim: trim-start scales larger than none because of trimmed start margin:
FAIL
- [consistent] Check that text-spacing-trim: trim-start scales larger than none because of trimmed start margin:
- /css/css-text/text-fit/background-image.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/columns-consistent.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /css/css-text/text-fit/grow-consistent.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/grow-per-line-all-line-height.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/grow-per-line-all.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/grow-per-line.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/selection-highlight-painting.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/shrink-consistent.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/shrink-per-line-all.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/spacing.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/text-align.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/text-box.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/text-decoration-skip-ink.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/text-decoration-thickness.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/text-emphasis.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/text-underline-offset.html [wpt.fyi]:
FAIL - /css/css-text/text-fit/writing-mode.html [wpt.fyi]:
FAIL
Comment 4•6 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/90a48158ef5f
https://hg.mozilla.org/mozilla-central/rev/337b4ab52ded
Description
•