Skip to content

Commit 3eeafc3

Browse files
committed
[css-values-4] Remove implication that calc(-0) produces a negative zero (CSS parsing removes the detail).
1 parent 37e36a8 commit 3eeafc3

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

css-values-4/Overview.bs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3454,22 +3454,16 @@ Type Checking</h3>
34543454

34553455
* Negative zero
34563456
(0⁻)
3457-
can be produced literally by negating a zero
3458-
(''-0''),
3459-
or by a multiplication or division that produces zero
3457+
can be produced by a multiplication or division that produces zero
34603458
with exactly one negative argument
3461-
(such as ''-5 * 0'' or ''1 / (-1 / 0)'').
3462-
3463-
Note: Note that,
3464-
outside of [=math functions=],
3465-
''-0'' just produces a "standard" zero,
3466-
identical to ''0''--
3467-
CSS as a whole doesn't recognize the concept of signed zeros.
3468-
Negative zeros also don't escape a [=math function=];
3459+
(such as ''-5 * 0'' or ''1 / (-1 / 0)''),
3460+
or by certain argument combinations in the other [=math functions=].
3461+
3462+
Note: Note that negative zeros don't escape a [=math function=];
34693463
as detailed below,
34703464
they're "censored" away into an "unsigned" zero.
3471-
* ''-0 + -0''
3472-
or ''-0 - 0''
3465+
* ''0⁻ + 0⁻''
3466+
or ''0⁻ - 0''
34733467
produces 0⁻.
34743468
All other additions or subtractions that would produce a zero
34753469
produce 0⁺.
@@ -3485,9 +3479,9 @@ Type Checking</h3>
34853479
follows standard sign rules.)
34863480
* When comparing 0⁺ and 0⁻,
34873481
0⁻ is less than 0⁺.
3488-
For example, ''min(0, -0)'' must produce 0⁻,
3489-
''max(0, -0)'' must produce 0⁺,
3490-
and ''clamp(0, -0, 1)'' must produce 0⁺.
3482+
For example, ''min(0⁺, 0⁻)'' must produce 0⁻,
3483+
''max(0⁺, 0⁻)'' must produce 0⁺,
3484+
and ''clamp(0⁺, 0⁻, 1)'' must produce 0⁺.
34913485

34923486
If a <dfn export>top-level calculation</dfn>
34933487
(a [=math function=] not nested inside of another [=math function=])

0 commit comments

Comments
 (0)