[whatwg] Customize HTML5 forms placeholder style

Maciej Stachowiak mjs at apple.com
Fri Feb 19 04:27:15 PST 2010

On Feb 19, 2010, at 3:41 AM, Anne van Kesteren wrote:

> On Fri, 19 Feb 2010 06:49:19 +0100, Maciej Stachowiak  
> <mjs at apple.com> wrote:
>> The remaining difference would be whether you could style aspects  
>> of the input element other than the text in the mode where it is  
>> showing placeholder text. What are the use cases for styling other  
>> aspects of the input element?
> You could e.g. style the border of the input element to show it has  
> not been used yet.

That's not what placeholder means though. If you clear out the text in  
a text field, it goes back to showing a placeholder. Doesn't seem like  
a custom border makes sense in that case. I also expect the  
placeholder style would never apply if there is no placeholder text.  
So if styling unused controls is really useful, that needs to be a  
separate pseudo-class.


More information about the whatwg mailing list