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

On Fri, Apr 8, 2011 at 1:34 PM, Sylvain Galineau <sylvaing@microsoft.com> wrote:
> [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).

If we're making that assumption, then yeah, I like the pseudoclass better.

~TJ

Received on Friday, 8 April 2011 20:38:27 UTC