[css-values-4] Nit: comparing -0
and +0
in min()
and max()
#9631
Labels
Closed as Question Answered
Used when the issue is more of a question than a problem, and it's been answered.
css-values-4
Current Work
1 / max(-1 * 0, 1 * 0)
results to-infinity
in Chrome/FF. Similarly,1 / min(1 * 0, -1 * 0)
results toinfinity
.They do not consider
-0 < 0
to be true, like in the JS comparison, and returns the first argument. But in JS,1 / Math.max(-1 * 0, 1 * 0)
results toInfinity
and1 / Math.min(1 * 0, -1 * 0)
results to-Infinity
.There is no related WPT test. Can you please tell me what is the expected result?
The text was updated successfully, but these errors were encountered: