W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] Customize HTML5 forms placeholder style

From: Dean Edwards <dean@edwards.name>
Date: Mon, 22 Feb 2010 14:35:32 +0000
Message-ID: <180c22a91002220635u19ab947do52bdd973dbd06149@mail.gmail.com>
On 22 February 2010 14:26, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
>> It gets around the need for a new :placeholder pseudo-class:
>>
>> input[placeholder]:empty {
>> ?color: red;
>> }
>
> To get it to act like implementations do, you have to use
> "input[placeholder]:empty:not(:focus)". ?That's pretty complex. ?^_^
>

Ah, good point. It's not quite so readable now. :(

-dean
Received on Monday, 22 February 2010 06:35:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC