- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 21 May 2024 20:49:53 +0000
- To: public-css-archive@w3.org
Yes, I think allowing a bare `0` is fine; as you say, we have the necessary context to infer the type (the calculation must be a length). We probably want to do it as a grammar branch, so only a literal `0` with nothing else works. (Such a calculation would otherwise be invalid since it would type as `<number>`, so this is safe.) If the calculation is any more complex than that, we continue to treat it as a number. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10354#issuecomment-2123419516 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 21 May 2024 20:49:54 UTC