- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Mon, 20 Nov 2023 14:26:08 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-4] Advanced simplification of calc-operator nodes == Maybe returning a result *in its canonical unit* should not be mandatory? > 4. If `root` is an operator node that’s not one of the calc-operator nodes, and all of its calculation children are numeric values with enough information to compute the operation root represents, return the result of running `root`’s operation using its children, **expressed in the result’s canonical unit**. https://drafts.csswg.org/css-values-4/#simplify-a-calculation-tree It prevents simplifying `min(1em)` as `calc(1em)` (related: #9559), `clamp(0em, 2em, 1em)` as `calc(1em)`, `round(1.1em, 1em)` as `calc(1em)`, etc. Chrome/FF currently simplify `min(max(1%, -1%))` as `max(1%, -1%)`. There does not seem to be any corresponding WPT tests. Support for other math functions is still low so I have not tested them. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9616 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 20 November 2023 14:26:09 UTC