W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

Re: [whatwg] Hide placeholder on input controls on focus

From: Tim Streater <tim@clothears.org.uk>
Date: 18 Mar 2013 16:47 +0000
To: <whatwg@lists.whatwg.org>
Message-Id: <20130318164726.75FA598443B@zapata.dreamhost.com>
On 18 Mar 2013 at 12:27, Boris Zbarsky <bzbarsky@MIT.EDU> wrote: 

> On 3/18/13 5:31 AM, Markus Ernst wrote:
>> - Opera and Safari hide it when the field gets focus
>
> The behavior of Safari here is platform-dependent or possibly
> version-dependent.  Safari 6 on Mac doesn't hide the placeholder until
> you start typing.

I for one find this to be extremely irritating. Workaround I was given by some kind person:

[placeholder]:focus::-webkit-input-placeholder
     {

     color:     transparent;

     }



--
Cheers  --  Tim
Received on Monday, 18 March 2013 16:47:57 GMT

This archive was generated by hypermail 2.3.1 : Monday, 18 March 2013 16:47:57 GMT