content icon indicating copy to clipboard operation
content copied to clipboard

Omitting roundingInterval

Open tim-we opened this issue 10 months ago • 1 comments

Description

Improved the description of the roundingInterval argument of the CSS round function. I explained what happens when you omit the value.

Motivation

In the syntax definition the argument is optional so I was wondering what would happen. Had to look at the spec to find out.

Additional details

Source (from the spec):

If the type of A matches , then B may be omitted, and defaults to 1; omitting B is otherwise invalid.

https://drafts.csswg.org/css-values/#round-func

tim-we avatar Jun 15 '25 11:06 tim-we

Preview URLs

(comment last updated: 2025-06-15 15:14:42)

github-actions[bot] avatar Jun 15 '25 11:06 github-actions[bot]