[whatwg] Customize HTML5 forms placeholder style

Ashley Sheridan ash at ashleysheridan.co.uk
Thu Feb 18 14:12:26 PST 2010


On Thu, 2010-02-18 at 17:07 -0500, Boris Zbarsky wrote:

> On 2/18/10 4:54 PM, Ashley Sheridan wrote:
> > What about a new selector for these sorts of elements?
> 
> The topic of this thread is what form this selector should take and how 
> it should work.
> 
> > To me it seems logical that you
> > shouldn't be using pseudo elements
> 
> Why?  If what you're trying to style is the placeholder _text_, then it 
> needs to be a pseudo-element.  If the goal is to style inputs that are 
> showing a placeholder, then it needs to be a pseudo-class.  What's the goal?
> 
> -Boris


I think maybe our terminologies are crossing wires. After looking up the
exact meaning, I think maybe a pseudo element IS preferable over a
pseudo class now.

Thanks,
Ash
http://www.ashleysheridan.co.uk


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100218/f07127d2/attachment-0002.htm>


More information about the whatwg mailing list