W3C home > Mailing lists > Public > www-style@w3.org > May 2005

Re: Suggestion: Inheritance

From: Hans Meiser <brille1@hotmail.com>
Date: Mon, 16 May 2005 17:19:51 +0000
Message-ID: <BAY107-F189360EFBA307FDAC5E795E2150@phx.gbl>
To: www-style@w3.org

>From: Mikko Rantalainen <mikko.rantalainen@peda.net>
>To: Hans Meiser <brille1@hotmail.com>
>CC: www-style@w3.org
>Subject: Re: Suggestion: Inheritance
>Date: Wed, 11 May 2005 08:22:08 +0300
>Hans Meiser wrote:
>>     .emphasize
>>     {
>>      background-color: body.color;  -- using the computed colour of the 
>>body element
>>      color: inherited.background-color;  using the computed inherited 
>>     }
>>The requested feature doesn't necessarily require a parent style sheet or 
>>prior CSS declarations of any kind as it refers to computed values.
>It's not that easy. What colors should the following result to?
>p { color: span.color; }
>.special+p {color: blue; }
>span { color: p.color; }
>In addition to that, which selector syntax do you suggest for selecting 
>which element (or rule?) should the computed value be requested from?
>If you allow something like
>p { color: *[has_style(display:table)].background-color; }
>there's no limit for the circular references. And if you only allow ID for 
>the source of the value, I think it's too limited.
>I'm afraid that you're going to be told to use style sheet preprosessing 
Received on Monday, 16 May 2005 17:24:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:18 UTC