stroking a rect with a non-default lineCap is blurry
Categories
(Core :: Graphics: Canvas2D, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | wontfix |
firefox99 | --- | wontfix |
firefox100 | --- | wontfix |
firefox101 | --- | wontfix |
firefox102 | --- | fix-optional |
People
(Reporter: julienw, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Attachments
(5 files)
STR:
- Open the attachment.
- Look at the left edge of the 2 rectangles at the bottom. It's blurry but it should be sharp.
My understanding is that the stroke should sit astride the edge of the rect, and that shouldn't depend on the lineCap
value.
Chrome looks as expected.
Note: the code in the attachment takes care that the pixels in the canvas are always aligned with device pixels. If you're using a retina display, that could make the issue difficult to see. You can use your OS' zoom capacity to look closer. I'll attach some screenshots of what I see on my system.
Reporter | ||
Comment 1•2 years ago
|
||
Reporter | ||
Comment 2•2 years ago
|
||
Reporter | ||
Comment 3•2 years ago
|
||
Everything happens as if the stroke starts at the edge of the rectangle instead of half a pixel before.
What's strange is that the other edges look good.
Reporter | ||
Comment 4•2 years ago
|
||
There's no issue with strokeRect, cf this other testcase.
Reporter | ||
Comment 5•2 years ago
|
||
Just like bug 1759155 comment 17, on my system (Linux), I get this pushlog https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=6202ade0e6d688ffb67932398e56cfc6fa04ceb3&tochange=b2dbee5ca727e87bdaeab9ab60fb83df2a9846a2
which is probably bug 1244754.
Reporter | ||
Comment 6•2 years ago
|
||
I removed the resize observer so that we can use mozregression on older builds.
Updated•2 years ago
|
Comment 7•2 years ago
|
||
Set release status flags based on info from the regressing bug 1244754
Comment 8•2 years ago
|
||
:lsalzman, since you are the author of the regressor, bug 1244754, could you take a look?
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
See bug 1759155 comment 19 for a discussion of the cause of this.
Comment 10•2 years ago
|
||
The severity field is not set for this bug.
:lsalzman, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Description
•