Skip to content

Commit 2bccebb

Browse files
committed
[css-values-4] Allow B in round() to be omitted, default to 1. #9668
1 parent 875e992 commit 2bccebb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

css-values-4/Overview.bs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3259,7 +3259,7 @@ Stepped Value Functions: ''round()'', ''mod()'', and ''rem()''
32593259
according to another "step value",
32603260
in different ways.
32613261

3262-
The round(<>?, A, B) function
3262+
The round(<>?, A, B?) function
32633263
contains an optional rounding strategy,
32643264
and two [=calculations=] A and B,
32653265
and returns the value of A,
@@ -3302,6 +3302,11 @@ Stepped Value Functions: ''round()'', ''mod()'', and ''rem()''
33023302
If <> is omitted,
33033303
it defaults to ''nearest''.
33043304
(Aka [=rounding to the nearest integer=].)
3305+
If the [=CSSNumericValue/type=] of A
3306+
matches <>,
3307+
then B may be omitted,
3308+
and defaults to ''1'';
3309+
omitting B is otherwise invalid.
33053310

33063311
Issue(5689): CSSOM needs to specify how it rounds,
33073312
and it's probably good for CSS functions to round the same way by default.
@@ -5531,6 +5536,8 @@ Recent Changes
55315536
and added one on 'scrollbar-gutter'
55325537
to make it possible for 100 of these units to actually match the [=initial containing block=].
55335538
5539+
* Allow B to be omitted in ''round()'' if the A's type is <>.
5540+
55345541

55355542
Substantial changes since 27 October 2023 WD:
55365543

0 commit comments

Comments
 (0)