Re: WebKit now supports CSS Variables

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 UTC