W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2016

[csswg-drafts] [css-color-4] backgroundColor

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 01 Aug 2016 08:40:25 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-168594954-1470040823-sysbot+gh@w3.org>
frivoal has just created a new issue for 

== [css-color-4] backgroundColor ==
Just as we have `currentColor`, having `backgroundColor` (or 
`background-color`) would be useful when you're doing effects that 
depend on the background color, but you don't know what it is (for 
example when the background color changes in various parts of the 

Here's an example which could be solved by having that keyword:


The definition, which would parallel that of `currentColor` would be 
something like:

> The keyword ''currentbackground'' takes its value from the value of 
the 'background-color' property on the same element. This happens at 
used-value time, which means that if the value is inherited, it’s 
inherited as ''currentbackground'', not as the value of the color 
property, so descendants will use their own color property to resolve 
> If ''currentbackground' is used as the value of the background-color
 property, it instead takes its value from the value of the 
background-color property on the parent element, or ''transparent'' if
 there is no parent element..

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/364 using your GitHub 
Received on Monday, 1 August 2016 08:40:34 UTC

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