W3C home > Mailing lists > Public > www-style@w3.org > April 2012

Re: [css3-background] blending on 'box-shadow' and 'text-shadow'

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 11 Apr 2012 08:50:07 -0700
Message-Id: <3BCF8A9A-23E8-44AC-A970-16352F7712C0@gmail.com>
Cc: Rik Cabanier <cabanier@gmail.com>, www-style list <www-style@w3.org>
To: Lea Verou <leaverou@gmail.com>

On Apr 10, 2012, at 5:51 PM, Lea Verou <leaverou@gmail.com> wrote:

> I think this problem should be solved more generically, rather than adding keywords to random properties. For example, the `difference` blending mode could be used on text color to make it more legible regardless of background. Or, blending modes on borders and/or backgrounds could produce quite interesting effects. They could also replace the `invert` keyword on `outline`.
> Maybe a function that can be used in place of any <color> value?

That was my first thought. Maybe even just extending rgba() and hsla() to be able to do this sort of thing: rgba(255,255,0,1,m) to multiply, and rgba(255,255,0,1,s) to screen.
Received on Wednesday, 11 April 2012 15:50:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:14 UTC