W3C home > Mailing lists > Public > www-style@w3.org > April 2011

RE: [css3-ui] Styling the HTML5 input element placeholder

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 8 Apr 2011 20:34:05 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>, "Sharon Newman (COHEN)" <Sharon.Newman@microsoft.com>
Message-ID: <045A765940533D4CA4933A4A7E32597E2ABFBA39@TK5EX14MBXC113.redmond.corp.microsoft.com>


[Tab Atkins:]
> > Sorry, I don't understand this explanation. Why wouldn't  the empty
> > non-focused element not match both the default style rules (in the UA
> > or author stylesheet) and the opacity set in your placeholder
> > pseudo-class rule ? I can apply opacity to the current color of elements
> on :hover or :active, right ?
> 
> You don't want the *input* to suddenly gain opacity.  Now, if you applied
> it via "input:placeholder::text" or something, that would be fine.

Right. I assume there is pseudo element for the value (::value in css3-ui).
Received on Friday, 8 April 2011 20:34:36 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:39 GMT