Closed Bug 1854181 Opened 9 months ago Closed 8 months ago

[wpt-sync] Sync PR 41970 - The size-adjust descriptor should not scale system fallback fonts.

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 41970 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/41970
Details from upstream follow.

ChangSeok Oh <changseok.oh@bytedance.com> wrote:

The size-adjust descriptor should not scale system fallback fonts.

When creating a system fallback font for a character on Mac, Blink
refers to the font platform data of the primary font. However, the
created system fallback font could be unintentionally scaled where
the size-adjust descriptor scales the primary font. To fix it, we use
the effective size of the font description instead.

Test: external/wpt/css/css-fonts/size-adjust-unicode-range-system-fallback.html

Bug: 1441723
Change-Id: I35c744f0ddcc0af82645bb4ff87dcdfa1b44860a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4861389
Reviewed-by: Dominik Röttsches \<drott@chromium.org>
Commit-Queue: ChangSeok Oh \<changseok.oh@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#1198009}

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core
Test result changes from PR not available.
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/d8ee8da055bc
[wpt PR 41970] - The size-adjust descriptor should not scale system fallback fonts., a=testonly
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.