- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Fri, 23 Aug 2024 18:56:41 +0000
- To: public-css-archive@w3.org
Thanks for the ping, missed this. > Back in 2019, there was a discussion on this https://github.com/w3c/csswg-drafts/issues/3482#issuecomment-451590359, where it is stated the 0px in these cases should go away, but I wanted to make sure that still held, and if so, double down on clarifying this in the spec, as it wasn't clear to me why this would be the case, as the [note](https://drafts.csswg.org/css-values-4/#simplify-a-calculation-tree) in the simplification section states: Hm, I guess I didn't realize that issue was asking for a spec change; I think it was just asking about *behavior* differences (beyond the serialization issues you're reporting now). There should indeed never be a behavior difference between `calc(10% + 0px)` and `calc(10%)`. Wrt serialization, I'm neutral on it. It looks like Emilio and Boris did indeed assume this meant we could simplify them away. If we want to do that, I'm happy to amend the spec for it. > Is there any reason use of unit algebra in this circumstance would be illegal? There is not; that line should be removed from the test. Looks like the tester was just a bit overeager testing their current behavior, preceding unit algebra support. Per spec, that's a completely valid line. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10752#issuecomment-2307643390 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 23 August 2024 18:56:42 UTC