W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: Styling HTML placeholder attribute

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 22 Jan 2013 20:28:20 -0800
Message-ID: <CAAWBYDBKZPsqJ4kbgxGzHO1cxeh0guK4fdXdis8SG1vv_PRoOg@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Sylvain Galineau <sylvaing@microsoft.com>, Mounir Lamouri <mounir@lamouri.fr>, www-style list <www-style@w3.org>
On Tue, Jan 22, 2013 at 7:15 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>> This particular scenario doesn't suggests a pseudo-element to me as much as a
>> property to set foreground color alpha independently of foreground color. That
>> could be more generally useful.
>
> THAT would be awesome. I was working on something a week or so ago where that would have made things much easier. I think I ended up using a wrapper element around the text I wanted to change opacity on, because I couldn't predict ahead of time what color it would be, and I only wanted to change the alpha. Something like 'color-alpha' that multiplied with the color's existing alpha (the 'a' in 'rgba', frex) would be great. That would be nicer than an alpha override, but even an override would be welcome.

Or, matching SVG naming conventions (and the existing 'opacity'
property), color-opacity.

I'm down with a color-opacity or foreground-opacity property to solve
this problem, if others are.  I just want the problem solved well, and
a pseudoclass plus nothing else doesn't solve it well.  ^_^

~TJ
Received on Wednesday, 23 January 2013 04:29:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT