[wpt-sync] Sync PR 43039 - [text-autospace] Sync width to `CharacterPositionData`
Categories
(Core :: Layout: Text and Fonts, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 43039 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/43039
Details from upstream follow.
Koji Ishii <kojii@chromium.org> wrote:
[text-autospace] Sync width to
CharacterPositionDataWhen applying auto-spacing, this patch synchronizes
ShapeResult::width_toCharacterPositionData::width_if
theShapeResulthasCharacterPositionData.They need to be in sync for
CachedOffsetForPositionand
CachedPositionForOffsetto work correctly, which are used
byShapingLineBreaker.While fixing this, tests discovered a bug where
ApplyTextAutoSpacingCoredoesn't add the spacing towidth_
for the RTL code path. Instead of fixing it, this patch
changesRecalcCharacterPositionsto update bothwidth_s.
ApplyTextAutoSpacingalways callsRecalcCharacterPositions.
The code that adjustswidth_inApplyTextAutoSpacingCore
is thus removed.Bug: 1500655, 1463890
Change-Id: I4db7b7139fc09688b2af015f9d4bb622103025d5Reviewed-on: https://chromium-review.googlesource.com/5014404
WPT-Export-Revision: 767c2caf94146be142ac3e468b62be9604ec0035
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
FAIL: 1
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-autospace/text-autospace-break-001.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL)
Comment 5•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/754350e249ec
https://hg.mozilla.org/mozilla-central/rev/ff10ce7af58d
Description
•