Closed Bug 1846387 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 41264 - CanvasRenderingContext2D does not return a numeric font weight

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox118 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yi Xu <yiyix@google.com> wrote:

CanvasRenderingContext2D does not return a numeric font weight

If ctx.font is set to italic 300 12px serif, ctx.font returns italic 12px serif. It doesn't return the correct font weight with getFont().

This cl fixes the return value of font.
ref: https://html.spec.whatwg.org/#text-styles:dom-context-2d-font-2

Bug: 1202489

Change-Id: I428e3941f2a3f59bbaec6585290829fc29e836a5

Reviewed-on: https://chromium-review.googlesource.com/4734077
WPT-Export-Revision: ace36118c17c7cead7b41d0a37f64fea0409c2dd

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Test result changes from PR not available.
Pushed by ctuns@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/7c4454a8136a [wpt PR 41264] - CanvasRenderingContext2D does not return a numeric font weight, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.