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

Re: [css-snappoints] repeat(calc(<value>)) clamping behaviour

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 19 Oct 2015 15:21:18 -0700
Message-ID: <CAAWBYDC9K7fi5wMFjYBjPCVC7kZ7dJzPhczfGmc8yuOvyooaCQ@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: Majid Valipour <majidvp@chromium.org>, "www-style@w3.org list" <www-style@w3.org>
On Mon, Oct 19, 2015 at 12:25 PM, fantasai
<fantasai.lists@inkedblade.net> wrote:
> On 07/06/2015 05:03 PM, Tab Atkins Jr. wrote:
>> (Now that you mention it, *every* usage of "positive (or non-negative)
>> length or you're invalid" in CSS has to be handled, actually.  With
>> calc(), you can't always tell that it's non-negative until layout
>> time, so you can't just assume that every value that survives is
>> definitely non-negative.)
>
> Yeah, we specify that here:
>   http://www.w3.org/TR/css-values-3/#calc-range

Ah, I'd forgotten about that.  Good catch.

~TJ
Received on Monday, 19 October 2015 22:22:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:57 UTC