W3C home > Mailing lists > Public > www-style@w3.org > March 2010

Customize HTML5 forms placeholder style

From: Mounir Lamouri <mounir.lamouri@gmail.com>
Date: Sun, 07 Mar 2010 19:28:30 +0100
Message-ID: <4B93F04E.7040605@gmail.com>
To: www-style@w3.org
Hi,

I have already opened this discussion in whatwg mailing list [1] but we
did not reach a consensus and I have been told to use this mailing list
which seems more appropriate.

To summarize, the placeholder attribute is now available in Gecko [2]
and Webkit and we are now face of the placeholder customization [3] [4]
[5]. Indeed, styling input or textarea can make the default placeholder
style inappropriate.

There is two ways to do that: using a pseudo-element or a pseudo-class.
If it is a pseudo-element, the properties that will applied have to be
limited probably like the :first-line pseudo-element.

The pros and cons related to both ways are detailed in the discussion in
whatwg mailing list. I would like to know your opinion and maybe get a
consensus and write a specification before implementing something in Gecko.

[1]
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-February/thread.html#25190
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=457800
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=457801
[4] https://bugs.webkit.org/show_bug.cgi?id=21227
[5] https://bugs.webkit.org/show_bug.cgi?id=21299

Thanks,

--
Mounir
Received on Monday, 8 March 2010 13:24:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:25 GMT