Skip to content

[css-values] Let B default to 1 in round(<strategy>?, A, B) #9668

Closed
@Loirooriol

Description

@Loirooriol

I get the reasoning for requiring a precision in most cases. However, as I mentioned in #2513 (comment), it seems fine to omit it for numbers.

So if B becomes optional, defaulting to 1, it will be possible to do things like

round(2.3) /* 2 */
round(up, 2.3) /* 3 */

while round(2.3em) will continue being invalid due to the type mismatch between A and B.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Unsorted regular

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions