- From: Xiaocheng Hu via GitHub <sysbot+gh@w3.org>
- Date: Thu, 26 Sep 2019 06:51:45 +0000
- To: public-css-archive@w3.org
xiaochengh has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-4] Issue with calculation simplification and math functions == [Current spec](https://drafts.csswg.org/css-values-4/#math-function-simplify-a-calculation) says: > To simplify a calculation: > ... > 2. Resolve all multiplications and divisions. > ... However, consider the case where one of the operands is a math function, e.g., `min(10px, 1em) * 2` In general, multiplications and divisions don't seem resolvable in this case. While we can "merge" the multiplicative factor into a comparison function, this trick doesn't work for other functions. As a result, the following requirement is also unachievable: > The result must be a summation of unique units and/or math functions. We might still end up with a complicated expression with math functions as leaf nodes. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4372 using your GitHub account
Received on Thursday, 26 September 2019 06:51:46 UTC