Closed
Bug 1856203
Opened 2 years ago
Closed 2 years ago
Failing WPTs html/canvas/offscreen/text/2d.text.drawing.style.letterSpacing.change.font.[worker.]html
Categories
(Core :: Graphics: Canvas2D, enhancement)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
121 Branch
| Tracking | Status | |
|---|---|---|
| firefox121 | --- | fixed |
People
(Reporter: twisniewski, Assigned: jfkthame)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
We're failing these two WPTs:
- 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
It looks like a rounding/test-fuzzing issue:
!EQ(167.20000076293945, 167.1999969482422)
| Assignee | ||
Comment 1•2 years ago
|
||
Yeah, this is not a real bug, just the limitations of floating-point accuracy. The test should be doing an approximate comparison, not requiring an exact match (just like a bunch of the other canvas text tests already do).
| Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c67416582c22
Use assert_approx_equals in canvas letter-spacing test, to allow for floating-point discrepancies in text measurement. r=gfx-reviewers,lsalzman
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42959 for changes under testing/web-platform/tests
Comment 5•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox121:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in
before you can comment on or make changes to this bug.
Description
•