W3C home > Mailing lists > Public > www-style@w3.org > December 2018

[css-color-4] rgb() syntax grammar

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 10 Dec 2018 14:22:43 +0100
Message-Id: <E1BC0E88-1994-47D2-AA58-C3D2936178FF@w3.org>
To: www-style list <www-style@w3.org>
Hi,
I noticed that the legacy rgb() syntax is defined in https://drafts.csswg.org/css-color/#rgb-functions (20180926 edition) as 
"rgb( <percentage>#{3} , <alpha-value>?) ) | rgb( <number>#{3} , <alpha-value>? )”
It should probably be "rgb( <percentage>#{3}  [ , <alpha-value> ]?) ) | rgb( <number>#{3} [ , <alpha-value> ]? )” to avoid rgb(11,22,33,) being valid.
HTH,

-- 
Baroula que barouleras, au tiéu toujou t'entourneras.

        ~~Yves
Received on Monday, 10 December 2018 13:22:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 10 December 2018 13:22:47 UTC