RESOLVED FIXED 259690
[CSS Math Functions] Correct mod() evaluation
https://bugs.webkit.org/show_bug.cgi?id=259690
Summary [CSS Math Functions] Correct mod() evaluation
Tim Nguyen (:ntim)
Reported 2023-08-01 10:04:21 PDT
According to https://drafts.csswg.org/css-values/#round-func : Their behavior diverges if the A value and the B step are on opposite sides of zero: mod() (short for “modulus”) continues to choose the integer multiple of B that puts the value between zero and B, as above (guaranteeing that the result will either be zero or share the sign of B, not A), while rem() (short for "remainder") chooses the integer multiple of B that puts the value between zero and -B, avoiding changing the sign of the value.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-08-01 10:04:33 PDT
Tim Nguyen (:ntim)
Comment 2 2023-08-01 10:07:07 PDT
EWS
Comment 3 2023-08-01 10:52:23 PDT
Committed 266485@main (440d1baa8043): <https://commits.webkit.org/266485@main> Reviewed commits have been landed. Closing PR #16277 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.