Customize HTML5 forms placeholder style

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 UTC