W3C home > Mailing lists > Public > www-style@w3.org > April 2017

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

From: Lea Verou <lea@verou.me>
Date: Wed, 19 Apr 2017 15:44:56 +0900
Cc: dholbert@mozilla.com
To: www-style list <www-style@w3.org>
Message-Id: <CA7E2170-D0F8-48C2-A1FB-A2C5B7E95B3E@verou.me>
> 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

Just fixed this to align with the grammar and implementations.

Lea Verou ✿ http://lea.verou.me ✿ @leaverou
Received on Wednesday, 19 April 2017 06:45:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 19 April 2017 06:45:30 UTC