Closed Bug 1736203 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 31282 - Integer interpolation should be rounded towards positive infinity.

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 31282 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/31282
Details from upstream follow.

Joonghun Park <pjh0718@gmail.com> wrote:

Integer interpolation should be rounded towards positive infinity.

Currently, interpolation of \<integer> is rounding away from 0.
The interpolation's result should be rounded according to the spec,
https://drafts.csswg.org/css-values-4/#combine-integers, which is

"the result is converted to an \<integer> by rounding
to the nearest integer, with values halfway between
adjacent integers rounded towards positive infinity."

Bug: 1257732
Change-Id: I0dc9db806b88e66bf326b848c4e4ac90ef868ed4
Reviewed-on: https://chromium-review.googlesource.com/3225842
WPT-Export-Revision: 7c0baabc289c152972ec8cae6cbd347eb7e928ab

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
PASS: 2

Chrome

OK : 2
FAIL: 2

Safari

OK : 2
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/971df5434ba8
[wpt PR 31282] - Integer interpolation should be rounded towards positive infinity., a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.