W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] Customize HTML5 forms placeholder style

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 18 Feb 2010 17:04:30 -0500
Message-ID: <4B7DB96E.2010509@mit.edu>
On 2/18/10 4:48 PM, Anne van Kesteren wrote:
> Can we really not try to push this as pseudo-class and educate the
> masses?

I'm not sure what you're proposing.  Something like 
"input:has-placeholder-showing"?  (I guess webkit tried 

> UAs could do some trickery that their default style rule has
> higher specificity than style= or some such to work around the issue
> WebKit ran into.

Uh... Can we please define "some trickery"?  Are you talking "any rule 
with this magic pseudo-class has higher specificity than any rule 
without this magic pseudo-class"?  Something else?

The main benefit of using a pseudo-class is that it allows you to style 
the input itself, not just the text, right?  Is that desirable?  Is it 
desirable enough to rewrite CSS cascading to do it?

Received on Thursday, 18 February 2010 14:04:30 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC