@@ -3259,7 +3259,7 @@ Stepped Value Functions: ''round()'', ''mod()'', and ''rem()''
3259
3259
according to another "step value",
3260
3260
in different ways.
3261
3261
3262
- The round(<>?, A, B) function
3262
+ The round(<>?, A, B? ) function
3263
3263
contains an optional rounding strategy,
3264
3264
and two [=calculations=] A and B,
3265
3265
and returns the value of A,
@@ -3302,6 +3302,11 @@ Stepped Value Functions: ''round()'', ''mod()'', and ''rem()''
3302
3302
If <> is omitted,
3303
3303
it defaults to ''nearest'' .
3304
3304
(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.
3305
3310
3306
3311
Issue(5689): CSSOM needs to specify how it rounds,
3307
3312
and it's probably good for CSS functions to round the same way by default.
@@ -5531,6 +5536,8 @@ Recent Changes
5531
5536
and added one on 'scrollbar-gutter'
5532
5537
to make it possible for 100 of these units to actually match the [=initial containing block=] .
5533
5538
5539
+ * Allow B to be omitted in ''round()'' if the A's type is <> .
5540
+
5534
5541
5535
5542
Substantial changes since
27 October 2023 WD :
5536
5543
0 commit comments