W3C home > Mailing lists > Public > www-style@w3.org > June 2008

Re: WebKit now supports CSS Variables

From: Dave Singer <singer@apple.com>
Date: Mon, 30 Jun 2008 06:02:43 -0700
Message-Id: <p0624080ac48e895ccff1@[10.0.1.8]>
To: Francois Remy <fremycompany_pub@yahoo.fr>, Simetrical <simetrical@gmail.com>, Brad Kemper <brkemper@comcast.net>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, David Hyatt <hyatt@apple.com>, "Håkon Wium Lie" <howcome@opera.com>, www-style list <www-style@w3.org>

At 23:09  +0200 29/06/08, Francois Remy wrote:
>Consider this situation :
>
>style1.css [enabled] {
>    @const bgColor: red;
>}
>style2.css [disabled] {
>    @const bgColor: green;
>}

surely the error is here;  bgColor has already been declared as a 
const with a different value.  You have a syntax violation (attempt 
to re-define a constant).  If you declare something 'const' in the 
context of a set of pages, it's your job to make sure it is, in fact, 
constant.  Whether the language processor enforces this, or whether 
you get 'undefined results' is a matter for debate.


-- 
David Singer
Apple/QuickTime
Received on Monday, 30 June 2008 13:04:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:07 GMT