Re: [csswg-drafts] [css-values] Clarify that calc(0) is never a length (#4554)

@SelenIT I think your reading of the quote is too strict. It says "could be parsed [...] in a property", so if you have `margin: calc(0)`, the `0` can still be parsed as either a `<number>` or a `<length>` when finding the type of the calculation in the `margin` property, even if `margin` doesn't accept `<number>`.

If we can't have that then I think your proposal doesn't completely solve the problem either, because when finding the type of `calc(0)`, the `0` does match `<zero>` and thus could be a `<length>`, so `calc(0)` could have type «[ "length" → 1 ]», and therefore `margin: calc(0)` could be valid even if `calc(0)` is not a dimension nor `<zero>`.

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

Received on Wednesday, 4 December 2019 16:21:16 UTC