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

I really line this idea; I assumed it was blocked for not happening before

On Wed, Nov 11, 2020 at 5:07 AM Lea Verou <notifications@github.com> wrote:

> Other than backgrounds being likely defined in an ancestor and possibly
> not being just a plain color, what about cycles?
>
> color: currentBackgroundColor;background-color: currentColor;
>
> Same as color: currentColor.
>
> A note RE: the parent value, since background-color is not inherited, if
> the card background is lightblue, and one wanted to use currentBackground
> on a child element, they would have to set its background to inherit. Not
> ideal but workable. It would be nice if there was a way to grab the first
> inherited background in this case. closestBackgroundColor maybe?
>
> Maybe time to revive #2864
> <https://github.com/w3c/csswg-drafts/issues/2864> ?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/csswg-drafts/issues/5292#issuecomment-725413163>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAJKUOEUIVNCMRNLNQV7DQDSPKEBZANCNFSM4OR6UZAA>
> .
>
-- 
Kevin Lozandier
lozandier@gmail.com <lozandier@gmail.com>


-- 
GitHub Notification of comment by lozandier
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5292#issuecomment-725414016 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 13:09:32 UTC