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

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

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 01 Aug 2016 11:24:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-236555328-1470050664-sysbot+gh@w3.org>
> FWIW, your example actually doesn't match what you were expecting, 
because background-color is not inherited by default, and thus 
backgroundColor in your example is actually transparent. (Even if it 
is inherited by default, your background would override that value as 
well.) This can be fixed by adding background-color: inherited 
explicitly, though.

and 

> Also given that you made this mistake when you wrote the example 
(I'm not blaming you, but), I suspect this setting isn't as intuitive 
as it looks like, which would also be a problem.

I did explicitly set the `background-color` to `currentBackground` via
 the shorthand, so that it would be picked from the parent, so I think
 I did get that right.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/364#issuecomment-236555328 
using your GitHub account
Received on Monday, 1 August 2016 11:24:39 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:22 UTC