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

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 03 Aug 2016 18:08:23 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-237319971-1470247701-sysbot+gh@w3.org>
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 
* 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 
using your GitHub account
Received on Wednesday, 3 August 2016 18:10:25 UTC

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