Re: [css-variables] Why we can not use 'var()' function for normal property

2015-06-05 Lea Verou:
>> On May 13, 2015, at 09:37, BangSeongbeom <bangseongbeom@hotmail.com> wrote:
>>
>> 'var()' function is limited for custom property only.
>> Custom properties and normal properties should be treated equally.
>> Like this:
>> ..foo {
>>      --wall: 100px;
>>      padding-bottom: 50px;
>> }
>> ..foo .bar {
>>      margin-top: var(--wall);
>>      padding-top: var(padding-bottom);
>> }
>
> This would not work, even if var() *could* refer to any property, since padding-bottom is not inherited. It would become the padding-bottom of .bar, which would be the initial value.
>
> ~Lea
>
>

Sorry. I wrote duplicated three mails. I thought my former two mails are 
deleted when I wasn't subscribing.

https://lists.w3.org/Archives/Public/www-style/2015May/0246.html is my 
last mail.

Received on Saturday, 6 June 2015 09:08:47 UTC