[css-images] Contradiction in definition of <color-stop-list>

Hi www-style,

Just ran into an inconsistency in the css-images-3 spec, in section 3.4
on gradient color-stop syntax.

The spec says:
# <color-stop-list> = <color-stop>{2,}
# [...]
# Color stops are organized into a color stop list,
# which is a list of one or more color stops.
https://drafts.csswg.org/css-images-3/#color-stop-syntax

There's a contradiction there, between the symbolic "{2,}" vs. the prose
"one or more".  I think the prose is incorrect & wants to say "two or more".

Firefox, Chrome, & Edge all require "two or more" stops, not "one or
more" -- they refuse to render a gradient expression with only one
<color-stop>, as shown by this testcase:
 http://jsfiddle.net/5uLxygq4/1/

Thanks,
~Daniel

Received on Tuesday, 27 October 2015 00:49:21 UTC