W3C home > Mailing lists > Public > www-style@w3.org > February 2011

[css3-images] Missing brackets in gradient value types

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Mon, 21 Feb 2011 18:43:51 +0100
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.vq9kvcxpbunlto@oyvinds-desktop>
Hi,

the syntaxes for the various gradient functions seem to be missing some  
brackets. For instance, in 5.1.1


<linear-gradient> = linear-gradient(
[
	[ [top | bottom] || [left | right] ]
	|
	<angle>
,]?
<color-stop>[, <color-stop>]+
);

should presumably be

<linear-gradient> = linear-gradient(
[[
	[ [top | bottom] || [left | right] ]
	|
	<angle>]
],]?
<color-stop>[, <color-stop>]+
);

(or however you want to format it), since juxtaposition is stronger than  
the bar. Similarly for the other three gradient variants.

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Monday, 21 February 2011 17:44:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT