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

According to snap points spec, repeat(<length>) only allows positive length
values. This is reasonable because negative or zero length values do not
make sense as a repeat value.

At the same time, length can be a calc in which case according to CSS
Values spec[1] its range should be a closed one which is at odds with the
open range that 'positive' implies.

For example, what is the expected behaviour for:
repeat(calc(-10%))
repeat(calc(10px - 10%)) /* can be positive or negative depending on size */

Perhaps we can allow 0 in repeat but make it a no-op?

Majid

[1] http://dev.w3.org/csswg/css-values/#calc-range

Received on Thursday, 2 July 2015 15:25:21 UTC