Closed Bug 1870297 Opened 11 months ago Closed 11 months ago

scientific notation bug causing calc() to fail when notation is above 1e4

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 120
defect

Tracking

()

RESOLVED DUPLICATE of bug 1860338

People

(Reporter: argyle, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Steps to reproduce:

1e4 works in my calc, but anything over 1e5 fails

here's a reduced test case.
both examples should behave the same, where you should see border radius on both unless they're the width of the viewport or less, then they're square.

https://codepen.io/argyleink/pen/LYqKdxO/77fa155bc98a9ebf6954ab7965851281

Actual results:

first example is square all the time, the one using 1e5

Expected results:

both should behave the same, regardless of using 1e4 or 1e5 in the calculation

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

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

This doesn't reproduce in 121.. so maybe this was fixed already?

Yeah this wasn't so much related to exponential notation but very large viewport units. The fix was bug 1860338.

Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1860338
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.