Re: [csswg-drafts] [css-values-4] `round(line-width, ...)` specification is confusing (#13794)

@tabatkins the spec says:

> https://drafts.csswg.org/css-values-4/#valdef-rounding-strategy-line-width
> If <rounding-strategy> is [line-width](https://drafts.csswg.org/css-values-4/#valdef-rounding-strategy-line-width), the [type](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-type) of A must match [<length>](https://drafts.csswg.org/css-values-4/#length-value).

But is that enforceable as a parse-time restriction? E.g. that'd prevent from rounding percentages as a line-width (which might be desirable?).

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


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

Received on Friday, 8 May 2026 10:16:43 UTC