[css-images] order of color-stops

Hi,

The specification says[1]:

""
Color stops must be specified in order.
""

This suggests that the CSS Parser must refuse the gradient if the specified color stops are not in order. Later on in the same subsection:

""
If a color stop has a position that is less than the specified position of any color stop before it in the list, set its position to be equal to the largest specified position of any color stop before it.
""

So the color stops can be out of order. It is also implemented that way.

May be the first quoted sentence should be removed. The paragraph still works without this sentence.

Greetings,
Dirk

[1] http://dev.w3.org/csswg/css-images/#color-stop-syntax

Received on Sunday, 18 August 2013 07:13:36 UTC