- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Fri, 31 Mar 2023 21:48:26 +0000
- To: public-css-archive@w3.org
> Each math function is described as allowing a calculation for its parameters, but that links specifically to the calc() definition, whereas the examples show that other math functions are allowed there. Specifically, they link to the "calculation" definition, which happens to be placed in the section defining calc(); they're not linking to `calc()` itself. The definition is not calc()-specific; it describes the *argument* to calc() (and the other math functions): "a sequence of values interspersed with operators, and possibly grouped by parentheses (matching the [`<calc-sum>`](https://drafts.csswg.org/css-values-4/#typedef-calc-sum) grammar)" > The [syntax description](https://drafts.csswg.org/css-values-4/#calc-syntax) does not itself allow any function (including calc()) to appear as a parameter to another math function. They do. All the grammar definitions eventually bottom out in `<calc-value>`, which is `<number>`/`<dimension>`/etc. Math functions match those productions based on what they contain, as specified in [Type Checking](https://drafts.csswg.org/css-values-4/#calc-type-checking). -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8664#issuecomment-1492646556 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 31 March 2023 21:48:28 UTC