W3C home > Mailing lists > Public > www-style@w3.org > November 2016

Re: [css-values] [css-color] XSL-FO and CSS - expression languages compared

From: Florian Rivoal <florian@rivoal.net>
Date: Thu, 17 Nov 2016 14:05:29 +0900
Cc: www-style@w3.org
Message-Id: <73C30899-F1CD-4363-AACE-E70665DA03C6@rivoal.net>
To: "Liam R. E. Quin" <liam@w3.org>

> On Nov 17, 2016, at 13:41, Liam R. E. Quin <liam@w3.org> wrote:
> On Thu, 2016-11-17 at 12:11 +0900, Florian Rivoal wrote:
>>> [...]
>>> mod (operator)
>>> floor()
>>> ceiling()
>>> round()
>>> min(a, b) - seems better than using units like vmin/vmax
>>> max(a, b)
>>> abs()
>> [...]
>> in the face of implementation difficulties, it is probably worth
>> looking at specific use cases that would benefit from these, and see
>> if we have other ways of addressing them in CSS. If not, then maybe
>> we should bite the bullet and deal with the complexity.
> Those particular examples aren't non-linear. exp() woud be. mod() is
> non-monatonic, which you might've meant.

It's been a while since I last though seriously about that, but I seem to remember that
as long as we had something which was continuous, piece-wise linear, and strictly monotonic, we were good,
and that breaking any of the three could mean complications.

mod is piecewise linear, but not continuous or monotonic
abs is piecewise linear and continuous, but not monotonic
floor, ceiling, min and max are piecewise linear and continuous, and monotonic but not strictly monotonic
round is piecewise linear but not continuous, and monotonic but not strictly monotonic

I may be misremembering the criteria, and they may not all be of equal difficulty, though. I seem to remember this discussion being raised by dbaron, so maybe he remembers better.

Received on Thursday, 17 November 2016 05:05:59 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:15:01 UTC