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

I agree with the naysayers here:

* `background-color`, being non-inheritable, is really unsuited for 
these kinds of things; you're limited solely to use-cases where you're
 reusing the background color on the element itself, not on any 
children
* background colors are often communicated via images, not 
`background-color`, which doesn't work at all here
* variables do exactly the same job, only better

I get that "just use variables" doesn't work very well if you're 
trying to do a hands-off refactor over the top of some existing 
styles, but that's not something we usually optimize for in CSS.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/364#issuecomment-237319971 
using your GitHub account

Received on Wednesday, 3 August 2016 18:10:25 UTC