Skip to content

Commit 314c07f

Browse files
committed
[css-values-4] Consistently use math-minus for negative zero, too.
1 parent 0a56fbf commit 314c07f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

css-values-4/Overview.bs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3114,7 +3114,7 @@ Type Checking</h3>
31143114
and between nested calculations:
31153115

31163116
* Negative zero
3117-
(0<sup>-</sup>)
3117+
(0<sup></sup>)
31183118
can be produced literally by negating a zero
31193119
(''-0''),
31203120
or by a multiplication or division that produces zero
@@ -3131,41 +3131,41 @@ Type Checking</h3>
31313131
they're "censored" away into an "unsigned" zero.
31323132
* ''-0 + -0''
31333133
or ''-0 - 0''
3134-
produces 0<sup>-</sup>.
3134+
produces 0<sup></sup>.
31353135
All other additions or subtractions that would produce a zero
31363136
produce 0<sup>+</sup>.
3137-
* Multiplying or dividing 0<sup>-</sup> with a positive number
3137+
* Multiplying or dividing 0<sup></sup> with a positive number
31383138
(including 0<sup>+</sup>)
31393139
produces a negative result
3140-
(either 0<sup>-</sup> or −∞),
3141-
while multiplying or dividing 0<sup>-</sup> with a negative number
3140+
(either 0<sup></sup> or −∞),
3141+
while multiplying or dividing 0<sup></sup> with a negative number
31423142
produces a positive result.
31433143

31443144
(In other words,
3145-
multiplying or dividing with 0<sup>-</sup>
3145+
multiplying or dividing with 0<sup></sup>
31463146
follows standard sign rules.)
3147-
* When comparing 0<sup>+</sup> and 0<sup>-</sup>,
3148-
0<sup>-</sup> is less than 0<sup>+</sup>.
3149-
For example, ''min(0, -0)'' must produce 0<sup>-</sup>,
3147+
* When comparing 0<sup>+</sup> and 0<sup></sup>,
3148+
0<sup></sup> is less than 0<sup>+</sup>.
3149+
For example, ''min(0, -0)'' must produce 0<sup></sup>,
31503150
''max(0, -0)'' must produce 0<sup>+</sup>,
31513151
and ''clamp(0, -0, 1)'' must produce 0<sup>+</sup>.
31523152

31533153
If a <dfn export>top-level calculation</dfn>
31543154
(a [=math function=] not nested inside of another [=math function=])
31553155
would produce a NaN,
31563156
it instead produces +∞.
3157-
If a [=top-level calculation=] would produce 0<sup>-</sup>,
3157+
If a [=top-level calculation=] would produce 0<sup></sup>,
31583158
it instead produces the standard "unsigned" zero.
31593159

31603160
<div class=example>
31613161
For example, ''calc(-5 * 0)'' produces an unsigned zero--
3162-
the calculation resolves to 0<sup>-</sup>,
3162+
the calculation resolves to 0<sup></sup>,
31633163
but as it's a [=top-level calculation=],
31643164
it's then censored to an unsigned zero.
31653165

31663166
On the other hand, ''calc(1 / calc(-5 * 0))'' produces −∞,
31673167
same as ''calc(1 / (-5 * 0))''--
3168-
the inner calc resolves to 0<sup>-</sup>,
3168+
the inner calc resolves to 0<sup></sup>,
31693169
and as it's not a [=top-level calculation=],
31703170
it passes it up unchanged to the outer calc to produce −∞.
31713171
If it was censored into an unsigned zero,

0 commit comments

Comments
 (0)