Open Bug 1764961 Opened 2 years ago Updated 3 months ago

stroking a rect with a non-default lineCap is blurry

Categories

(Core :: Graphics: Canvas2D, defect, P3)

defect

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)

Attached file canvas1.html

STR:

  1. Open the attachment.
  2. 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.

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.

There's no issue with strokeRect, cf this other testcase.

See Also: → 1759155

I removed the resize observer so that we can use mozregression on older builds.

Regressed by: 1244754

Set release status flags based on info from the regressing bug 1244754

:lsalzman, since you are the author of the regressor, bug 1244754, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(lsalzman)
Has Regression Range: --- → yes

See bug 1759155 comment 19 for a discussion of the cause of this.

Flags: needinfo?(lsalzman)

The severity field is not set for this bug.
:lsalzman, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(lsalzman)
Severity: -- → S4
Flags: needinfo?(lsalzman)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: