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

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

From: Bang Seongbeom <bangseongbeom@hotmail.com>
Date: Sat, 6 Jun 2015 18:04:25 +0900
Message-ID: <BLU436-SMTP7003AE9C625458C074E46BB0B10@phx.gbl>
To: Lea Verou <lea@verou.me>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, "Marat Tanalin | tanalin.com" <mtanalin@yandex.ru>, Boris Zbarsky <bzbarsky@mit.edu>, www-style list <www-style@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC