WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 260777
263141
@property integer syntax rounds numbers incorrectly
https://bugs.webkit.org/show_bug.cgi?id=263141
Summary
@property integer syntax rounds numbers incorrectly
Jane Ori
Reported
2023-10-13 15:22:14 PDT
Safari is using an away-from-zero rounding strategy to cast number values assigned to an integer property. Chrome uses the "nearest" strategy that JS's Math.round() uses. "nearest" is also the default rounding for the round() CSS function Here is a reduced test case showing the differences:
https://codepen.io/propjockey/pen/vYvMbaX/253c4756c72e962cb10b0c19b396ea37?editors=1100
Thank you! // Jane
Attachments
Add attachment
proposed patch, testcase, etc.
Tim Nguyen (:ntim)
Comment 1
2023-10-14 08:00:46 PDT
I switched to using a towards positive infinity rounding strategy in
bug 260777
. Can you please re-test in STP? *** This bug has been marked as a duplicate of
bug 260777
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug