- From: Johannes Odland via GitHub <sysbot+gh@w3.org>
- Date: Sat, 27 Jan 2024 15:49:42 +0000
- To: public-css-archive@w3.org
johannesodland has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-typed-om-1][css-syntax-3][css-values-4] Clarify interaction between CSSNumericValue.parse() and `simplify a calculation tree` == Both Blink and Webkit seem to return a simplified value when running `CSSNumericValue.parse()`. ```js CSSNumericValue.parse('calc(min(1,2,3) * 5px)').toString(); // returns calc(5px) ``` But, reading through [`parse(cssText)`](https://drafts.css-houdini.org/css-typed-om/#dom-cssnumericvalue-parse) and the procedures it invokes, I can't find any references to [`Simplify a calculation tree`](https://www.w3.org/TR/css-values-4/#simplify-a-calculation-tree). It might seem like [`Simplify a calculation tree`](https://www.w3.org/TR/css-values-4/#simplify-a-calculation-tree) is invoked sometime during [`reify a math expression`](https://drafts.css-houdini.org/css-typed-om/#reify-a-math-expression). The result is always wrapped in a `CSSMathSum`, even if the simplification results in a single value.) Should `reify a math expression` invoke `simplify a calculation tree` or should it be invoked somewhere else? I might have missed something reading through the specs. If this is already documented somewhere, I apologize. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9870 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 27 January 2024 15:49:45 UTC