- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Fri, 17 Jun 2022 17:54:26 +0000
- To: public-css-archive@w3.org
The mathematical definition of percentage (just another way of writing a number) and the CSS definition (a distinct unit separate from a number) are already different; we can't and don't want to unify them. The `<dimension-unit>` production appears to be correct and unambiguous. I suppose technically the definition in the next section is slightly incorrect: > If the result is a [<number-token>](https://drafts.csswg.org/css-syntax-3/#typedef-number-token), the [substitution value](https://drafts.csswg.org/css-values-5/#attr-substitution-value) is a dimension with the result’s value, and the given unit. ...and could have an "(or a percentage with the result's value)" appended to the end. That said, I'd rather just clarify in Values that a percentage can also be considered to have a "unit" of `%`; that would also fix the calculation tree reference. For all intents and purposes it does; the separation of dimensions and percentages is pretty much a legacy thing that I carried from CSS2's organization. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7381#issuecomment-1159110594 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 17 June 2022 17:54:27 UTC