Skip to content

Commit e5180b0

Browse files
committed
[css-values-4] Second try at abs(); I have to refer to the numeric value, not just the calculation itself.
1 parent 55bed8b commit e5180b0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

css-values-4/Overview.bs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3286,16 +3286,15 @@ Sign-Related Functions: ''abs()'', ''sign()''</h3>
32863286
contains one [=calculation=] A,
32873287
and returns the absolute value of A,
32883288
as the same [=CSSNumericValue/type=] as the input:
3289-
if A is positive, just A again;
3290-
if A is zero, 0⁺;
3291-
if A is negative, ''-1 * A''.
3289+
if A's numeric value is positive or 0⁺, just A again;
3290+
otherwise ''-1 * A''.
32923291

32933292
The <dfn lt="sign()">sign(A)</dfn> function
32943293
contains one [=calculation=] A,
3295-
and returns -1 if A is negative,
3296-
+1 if A is positive,
3297-
0⁺ if A is 0⁺,
3298-
and 0⁻ if A is 0⁻.
3294+
and returns -1 if A's numeric value is negative,
3295+
+1 if A's numeric value is positive,
3296+
0⁺ if A's numeric value is 0⁺,
3297+
and 0⁻ if A's numeric value is 0⁻.
32993298

33003299
Note: Both of these functions operate on the fully simplified/resolved form of their arguments,
33013300
which may give unintuitive results at first glance.

0 commit comments

Comments
 (0)