Canvas arc is drawn incorrectly
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr102 | --- | unaffected |
| firefox-esr115 | --- | unaffected |
| firefox116 | --- | fixed |
| firefox117 | --- | fixed |
| firefox118 | --- | fixed |
People
(Reporter: marcelionis, Unassigned)
References
(Regression)
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Steps to reproduce:
I draw a simple arc which should be anticlockwise, but the arc is draw clockwise. This happens with specific angles only. Here is a code:
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
ctx.beginPath();
ctx.strokeStyle = "#FF6600";
ctx.lineWidth = 1;
var x = 200;
var y = 150;
ctx.arc(x, y, 90, -Math.PI/2, Math.PI/2, true);
ctx.stroke();
codepen:
https://codepen.io/team/amcharts/pen/JjexzYj/27840821bead34e7d21c04d8143aef8f?editors=1010
Actual results:
Arc is drawn to a wrong side (other browsers do it correctly).
Expected results:
The arc should be to the left.
Comment 1•2 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=14edc9bcbe5615f748cdb086881c6b983aedf04d&tochange=33d2377b255dbfbe7ca7d86e2211b6336f44bff4
Updated•2 years ago
|
Comment 2•2 years ago
|
||
:jrmuizel, since you are the author of the regressor, bug 1839470, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•