Open Bug 1783691 Opened 2 years ago Updated 2 years ago

Canvas ellipse precision

Categories

(Core :: Graphics: Canvas2D, enhancement)

Firefox 103
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: arnaud, Unassigned)

Details

Attachments

(1 file)

Attached file test.html

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0

Steps to reproduce:

Using HTML's canvas element, I'm trying to draw an ellipse with a large radius and a circle whose center should be on the ellipse.
The attached code is an example of what I'm trying to accomplish.
This code works on chrome.

Actual results:

The circle center is not on the ellipse because the ellipse is not drawn accurately.

Expected results:

The circle should land on the ellipse, as it does on chrome.

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: Canvas2D' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: Canvas2D
Product: Firefox → Core

Extra details: The imprecision seems to be between 1e-5 to 5e-4, which is huge compared to the precision of a float.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: