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.
<rdar://problem/113213059>
Pull request: https://github.com/WebKit/WebKit/pull/16277
Committed 266485@main (440d1baa8043): <https://commits.webkit.org/266485@main> Reviewed commits have been landed. Closing PR #16277 and removing active labels.