W3C home > Mailing lists > Public > www-style@w3.org > August 2013

[css-images] order of color-stops

From: Dirk Schulze <dschulze@adobe.com>
Date: Sun, 18 Aug 2013 00:13:07 -0700
To: www-style list <www-style@w3.org>
Message-ID: <2C39BE53-4DE3-43D8-A85A-89FB0722D74C@adobe.com>

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.


[1] http://dev.w3.org/csswg/css-images/#color-stop-syntax
Received on Sunday, 18 August 2013 07:13:36 UTC

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