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

Right, that's precisely why it requires a unit right now - we can't have the unit depend on the input (for the reasons given, plus things like `round(1em + 10px)` that don't have a single unit), and we don't want to default a mystery unit that might violate author expectations.

> So if B becomes optional, defaulting to 1

Yes, we could do this. Is there a particular reason to do so, tho?

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9668#issuecomment-1839277915 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 4 December 2023 18:58:18 UTC