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)
Core
Graphics: Canvas2D
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.
Comment 1•1 year ago
|
||
This is causing us to fail these WPTs for interop2023:
- https://wpt.fyi/results/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.html
- https://wpt.fyi/results/html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.worker.html
- https://wpt.fyi/results/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.html
- https://wpt.fyi/results/html/canvas/offscreen/text/2d.text.drawing.style.wordSpacing.change.font.worker.html
Blocks: interop-2023-offscreencanvas
Assignee | ||
Comment 2•11 months ago
|
||
Updated•11 months ago
|
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
Comment 4•11 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
status-firefox118:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•