Closed Bug 1529438 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 15481 - Make calc() function can be used in any place that only accepts integer.

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Joonghun Park <pjh0718@gmail.com> wrote:

Make calc() function can be used in any place that only accepts integer.

https://www.w3.org/TR/css-values-4/#calc-type-checking spec
says that calc() function that resolve to \<number> can be used
in any place that only accepts \<integer>.
This change makes calc() function's behavior to comply with the spec.

Bug: 931216
Change-Id: Iac9ad21d664bb60538d40ab42cbb8153de6db89f
Reviewed-on: https://chromium-review.googlesource.com/1478852
WPT-Export-Revision: 7fc76077fb063933050c1e291c38d02b315602f3

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Ran 2 tests and 15 subtests
OK     : 2
PASS   : 6
FAIL   : 9
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1f293875c401
[wpt PR 15481] - Make calc() function can be used in any place that only accepts integer., a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4a51a4a136f3
[wpt PR 15481] - Make calc() function can be used in any place that only accepts integer., a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.