I think the important spec quote is in https://drafts.csswg.org/css-values/#length-value: > However, if a 0 could be parsed as either a `<number>` or a `<length>` in a property (such as line-height), it must parse as a `<number>`. Then, when https://drafts.csswg.org/css-values/#calc-type-checking could parse `0` in `calc()` as either a `<number>` or `<length>`... > - `<number>` > - `<integer>` > the type is «[ ]» (empty map) > - `<length>` > the type is «[ "length" → 1 ]» ...it must do it as a `<number>`. So it follows that `calc(0)` is not a length. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4554#issuecomment-561117176 using your GitHub accountReceived on Tuesday, 3 December 2019 11:01:19 UTC
This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC