Closed Bug 1839104 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 40614 - Implement the from-font value for font-size-adjust

Categories

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

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

Implement the from-font value for font-size-adjust

The 'from-font' value is newly added to CSS Font Module Level 5 [1],
which allows the browser to automatically determine a font-size-adjust
value based on the primary font. This change implements it.

[1] https://www.w3.org/TR/css-fonts-5/#valdef-font-size-adjust-from-font

We tweak font-size-adjust-013.html to make Windows happy. The platform
got a one-pixel mismatch of width and height due to subpixel rendering.

Test:
external/wpt/css/css-fonts/font-size-adjust-013.html
external/wpt/css/css-fonts/parsing/font-size-adjust-computed.html
external/wpt/css/css-fonts/parsing/font-size-adjust-valid.html

Bug: 1219875
Change-Id: I79b401689c1afdbdb581112fe0778ca4a520a441

Reviewed-on: https://chromium-review.googlesource.com/4542920
WPT-Export-Revision: ff3adb6428fbe9a815ec8842b94c638856347636

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/05c38caccd74 [wpt PR 40614] - Implement the from-font value for font-size-adjust, a=testonly https://hg.mozilla.org/integration/autoland/rev/da1d83c06005 [wpt PR 40614] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.