Closed Bug 1832955 Opened 1 year ago Closed 11 months ago

Support font-relative CSS lengths as values for letterSpacing/wordSpacing in OffscreenCanvas

Categories

(Core :: Graphics: Canvas2D, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The patches landed in bug 1778909 only support absolute CSS <length> values (with units such as px, cm, in, etc) when working with offscreen canvas, although for in-document <canvas> elements other length units -- in particular, font-relative units like em and ch -- are supported.

For better consistency between the <canvas> element and OffscreenCanvas, and because font-relative units are useful to authors, we should figure out how to support and resolve them appropriately in the offscreen case.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a7b4be81c1ae
Support font-relative units when parsing letterSpacing/wordSpacing for offscreen canvas. r=gfx-reviewers,lsalzman,emilio
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: