[whatwg] Customize HTML5 forms placeholder style

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