[whatwg] Customize HTML5 forms placeholder style

Mounir Lamouri mounir.lamouri at gmail.com
Thu Feb 18 08:29:14 PST 2010


Hi,

I am working on placeholder implementation on Gecko and I am face of the
placeholder style customization. Indeed, a website can style the
input/textearea element which can make default placeholder style
inappropriate.
The trivial idea is to create a CSS pseudo-element to style the
placeholder. I am going to implement that [1] as Webkit did [2].
But the properties that will apply to the pseudo-element should be
limited. Probably only those related to the font.

At the moment, it looks like there is no specification about the style
customization of the placeholder. Maybe it would be appropriate to
specify one ?

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=457801
[2] https://bugs.webkit.org/show_bug.cgi?id=21227

Thanks.

--
Mounir Lamouri



More information about the whatwg mailing list