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

Re: WebKit now supports CSS Variables

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Thu, 26 Jun 2008 19:09:19 -0700
Message-ID: <48644BCF.9020400@terrainformatica.com>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
CC: Håkon Wium Lie <howcome@opera.com>, www-style list <www-style@w3.org>

Daniel Glazman wrote:
> 
> Håkon Wium Lie wrote:
> 
>> Not according to the proposal, section 3.3:
>>
>>   The declaration becomes invalid if the variable does not exist.
> 
> Oops, we'll fix that ;-)
> 
> </Daniel>
> 
> 
> 

Consider the following:

@variables
{
   ThemeColor: #fe8d12;
}

body
{
   color: var(ThemeColor);
}

div
{
   color: inherit;
}

Question: what would be the value of div::color?
In other words: what value non-existent variable is being evaluated to?
Some sort of 'undefined'

One more question:

@variables
{
   ThemeSomething: #fe8d12;
}

body
{
   background: var(ThemeSomething) green;
}

Question is: where var(ThemeSomething) will go?
To background-image or to background-color?
What will happen if variable will be changed from "#fe8d12"
to, say, "url(yeek.png)" in runtime?


-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Friday, 27 June 2008 02:09:54 GMT

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