W3C home > Mailing lists > Public > www-style@w3.org > October 2015

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

From: Daniel Holbert <dholbert@mozilla.com>
Date: Mon, 26 Oct 2015 17:48:48 -0700
To: www-style list <www-style@w3.org>
Message-ID: <562EC9F0.7080607@mozilla.com>
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

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