- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 21 Jun 2022 19:43:26 +0000
- To: public-css-archive@w3.org
'width', for example, does not allow negative lengths and will reject them at parse time. But we can't generally tell at parse time whether a calc() will be negative, and don't want to invoke invalidation logic like variables, so we clamp instead. But that means we *cannot* serialize the negative value out directly, because then it won't round-trip - it'll be rejected if you do `el.style.width = el.style.width` or similar. So we need to wrap it in `calc()` to keep it flagged as "clamp this to the allowed range". -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4399#issuecomment-1162254912 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 21 June 2022 19:43:27 UTC