scientific notation bug causing calc() to fail when notation is above 1e4
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
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
Comment 1•11 months ago
|
||
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.
This doesn't reproduce in 121.. so maybe this was fixed already?
Comment 3•11 months ago
|
||
Yeah this wasn't so much related to exponential notation but very large viewport units. The fix was bug 1860338.
Description
•