W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

Re: [csswg-drafts] [css-color-5] Add `currentBackgroundColor` Variable (#5292)

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Nov 2020 21:11:32 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-725663633-1605129091-sysbot+gh@w3.org>
@una Ah so you want it to be inherited somehow? That's not what I would expect for the name of `currentBackgroundColor`, and there comes more complexity...

Firstly, all elements have background color even if you do not specify. It's `transparent`. Are you proposing that we simply ignore that specific value? Or are you proposing we only use the background color if there is a cascaded value? Either way that would work differently from what `currentcolor` does... likely in a worse way.

For your specific example, actually, `button` usually comes with a default background, are you proposing some mechanism to ignore non-author rules maybe?

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 11 November 2020 21:11:33 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC