Re: Styling HTML placeholder attribute

On Jan 24, 2013, at 10:32 AM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> Arguments from theoretical purity are interesting and all, but that's
> the lowest level in the hierarchy of constituents.  The most important
> thing is to figure out what kind of styling would produce the desired
> effect for placeholder text, and then we reason backwards from there
> to figure out what kind of properties and/or selectors we need to
> achieve that effect in the best manner.

I disagree. Its not just a matter of purity. If there is an easy-to-understand way to describe the desired effect without a logically surprising distortion of what we already defined as the difference between pseudo-element and pseudo-class, then that should be the clear winner over something unjustifiably assumes a cross-UA internal structure of a form element in order to twist it into something that 'opacity' works well with. Especially when said twisting also reduces styling choices for the form element (styling borders based on the placeholder state), and when doing it another way increases styling opportunities in other situations (changing a color's alpha in any element without simultaneously having to set the other color components). 

If we need to define how something that is clearly a pseudo-class works in order to allow better author styling, then we shouldn't limit ourselves to not creating new properties or color values to do it. 

Received on Thursday, 24 January 2013 19:42:47 UTC