W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2017

Re: [csswg-drafts] [css-variables] Whether to support override a property using itself?

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Tue, 10 Jan 2017 18:43:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-271660651-1484073826-sysbot+gh@w3.org>
Can you clarify what you are trying to do? Use a value but have 
children inherit another? The css way to achieve this is to have two 
properties.

```
* {
  --main-color: var(--inherited-main-color);
}

:root {
  --main-color: #aaa;
  --inherited-main-color: #bbb;
}
```

-- 
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/876#issuecomment-271660651 
using your GitHub account
Received on Tuesday, 10 January 2017 18:43:53 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:07 UTC