Closed Bug 1575698 Opened 4 months ago Closed 3 months ago

[wpt-sync] Sync PR 18600 - Add parser and evaluation WPT for <number> and <integer> involving min/max()

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Xiaocheng Hu <xiaochengh@chromium.org> wrote:

Add parser and evaluation WPT for <number> and <integer> involving min/max()

Bug: 978682
Change-Id: I03310f9116f66d3ec2248a357c209d704deb85cd
Reviewed-on: https://chromium-review.googlesource.com/1764669
WPT-Export-Revision: bc987026406ef4f8cf3535363a554055698837b3

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Ran 3 tests and 72 subtests
OK     : 3
PASS   : 50
FAIL   : 22

New tests that have failures or other problems:
/css/css-values/minmax-integer-computed.html
    Property z-index value 'calc(max(0.3, 0.6) / 2)' computes to '0': FAIL
    Property z-index value 'calc(min(0.3, 0.6) * 2)' computes to '1': FAIL
    Property z-index value 'max(0.3, min(1.1, 0.4))' computes to '0': FAIL
    Property z-index value 'max(0.4)' computes to '0': FAIL
    Property z-index value 'max(0.6)' computes to '1': FAIL
    Property z-index value 'max(1)' computes to '1': FAIL
    Property z-index value 'min(0.4)' computes to '0': FAIL
    Property z-index value 'min(0.6)' computes to '1': FAIL
    Property z-index value 'min(1)' computes to '1': FAIL
    Property z-index value 'min(1.1, max(0.4, 0.6))' computes to '1': FAIL
/css/css-values/minmax-number-computed.html
    Property opacity value 'calc(max(0.1, 0.2) * 2)' computes to '0.4': FAIL
    Property opacity value 'calc(max(0.1, 0.2) + 0.05)' computes to '0.25': FAIL
    Property opacity value 'calc(max(0.1, 0.2) - 0.05)' computes to '0.15': FAIL
    Property opacity value 'calc(max(0.1, 0.2) / 2)' computes to '0.1': FAIL
    Property opacity value 'calc(min(0.1, 0.2) * 2)' computes to '0.2': FAIL
    Property opacity value 'calc(min(0.1, 0.2) + 0.05)' computes to '0.15': FAIL
    Property opacity value 'calc(min(0.1, 0.2) + max(0.1, 0.05))' computes to '0.2': FAIL
    Property opacity value 'calc(min(0.1, 0.2) - 0.05)' computes to '0.05': FAIL
    Property opacity value 'calc(min(0.1, 0.2) - max(0.1, 0.05))' computes to '0': FAIL
    Property opacity value 'calc(min(0.1, 0.2) / 2)' computes to '0.05': FAIL
    Property opacity value 'max(0.1, min(0.2, 0.15))' computes to '0.15': FAIL
    Property opacity value 'min(0.2, max(0.1, 0.15))' computes to '0.15': FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5d7f8450060d
[wpt PR 18600] - Add parser and evaluation WPT for <number> and <integer> involving min/max(), a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/2104112e4f94
[wpt PR 18600] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.