Re: [css3-values] feedback

On 2/13/15 7:27 AM, Shawn Hempel wrote:
> 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.

It was eliminated because it made layouts involving max() and min() 
nondeterministic (in that there are multiple possible solutions to the 
constraints), no?

> 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

While true, this simply means that it has all the problems max() and 
min() have, yes?

-Boris

Received on Saturday, 14 February 2015 18:40:09 UTC