- From: Shawn Hempel <shawn@hempel.cx>
- Date: Fri, 13 Feb 2015 12:27:48 +0000
- To: www-style@w3.org
Received on Friday, 13 February 2015 17:50:45 UTC
Please consider adding an abs() operator for calc(). This simple operator would enable mathematical workarounds for the lack of max() and min(), which I understand was apparently eliminated from the spec due to complexities in performing the comparisons. An abs() function would make it possible to calculate either max() or min() using simple functions: max(x, y) = (x + y) / 2 + abs(x - y) / 2 min(x, y) = ((x + y) - abs(x - y)) / 2 Thanks for your time.
Received on Friday, 13 February 2015 17:50:45 UTC