W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [css3-values] feedback

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Sat, 14 Feb 2015 13:39:30 -0500
Message-ID: <54DF9662.3050904@mit.edu>
To: www-style@w3.org
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC