Open Bug 1755757 Opened 4 years ago Updated 4 years ago

CSS: low precision with very large angle value

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 97
Desktop
All
defect

Tracking

()

Tracking Status
firefox-esr91 --- affected
firefox97 --- affected
firefox98 --- affected
firefox99 --- affected

People

(Reporter: cpartiot, Unassigned)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0

Steps to reproduce:

apply style transform: rotate(400000.01turn) to an element.

Actual results:

the element keeps its horizontal position.

Expected results:

the element should appear rotated by 0.01 turns (3.6 degrees).

The accuracy of the angle value decreases for very large angle values (over 10000 turns).

Playground example: https://codepen.io/yukulele/pen/MWOOZNb

Could you please provide a screenshot to make it easier for me to understand the issue?
Thanks.

Flags: needinfo?(cpartiot)
Flags: needinfo?(cpartiot)

expected result

i'm seeing differences between Firefox and Google Chrome, but there are not the same as the screenshots you attached.

The issue seems to be reproducible on Windows 10 x64, macOS 11.6 and on Ubuntu 20.04 x64.

Severity: -- → S4
Status: UNCONFIRMED → NEW
Component: Untriaged → CSS Parsing and Computation
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → Desktop

i'm seeing differences between Firefox and Google Chrome, but there are not the same as the screenshots you attached.

It's because it's not the same angle used (150 000 deg vs 400 000 deg)

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

Attachment

General

Creator:
Created:
Updated:
Size: