Values for canvas letterSpacing/wordSpacing attributes should be normalized to lowercase
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox116 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
One reason we fail some letter/word-spacing tests is that they specify a value in uppercase (e.g. ctx.letterSpacing = "1PX"
), but on reading back the value, the test expects to see it lowercased.
Currently, we accept such uppercased units (we use a case-insensitive comparison when parsing them), but store them exactly as specified. We should instead normalize them, as the test expects and as is usual for CSS serialization.
Assignee | ||
Comment 1•1 year ago
|
||
The other thing I'm intending to do here is to split out the spacing testcases using font-relative lengths from those that use absolute lengths. Currently in OffscreenCanvas, we only support absolute lengths. Separating the tests will make it easier to keep track of the status.
Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
Also adds a few more examples of font-relative lengths. We currently fail those
in OffscreenCanvas (see bug 1832955).
Depends on D181277
Comment 6•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/950bd58b50e5
https://hg.mozilla.org/mozilla-central/rev/ee558fb646d4
Description
•