- From: Lea Verou <lea@verou.me>
- Date: Wed, 19 Apr 2017 15:44:56 +0900
- To: www-style list <www-style@w3.org>
- Cc: dholbert@mozilla.com
Received on Wednesday, 19 April 2017 06:45:30 UTC
> 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