[Webkit-unassigned] [Bug 259702] New: CSS round(up) incorrect when number is a multiple of step

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 1 13:21:30 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=259702

            Bug ID: 259702
           Summary: CSS round(up) incorrect when number is a multiple of
                    step
           Product: WebKit
           Version: Safari 16
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nweiz at google.com

According to CSS Values and Units 4 (https://drafts.csswg.org/css-values-4/#round-func), for any round() strategy,

> If A is exactly equal to an integer multiple of B, round() resolves to A exactly

However, round(up, 10px, 5px) resolves to 15px instead of 10px as it should.

Tested in Safari 16.6.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230801/95e43bd2/attachment.htm>


More information about the webkit-unassigned mailing list