W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: Styling HTML placeholder attribute

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 24 Jan 2013 11:42:13 -0800
Message-Id: <1DCD8A46-1572-4A03-9CBA-A5ED0947AFCF@gmail.com>
Cc: Arron Eicholz <Arron.Eicholz@microsoft.com>, Sylvain Galineau <sylvaing@microsoft.com>, Mounir Lamouri <mounir@lamouri.fr>, www-style list <www-style@w3.org>, "Lea Verou (leaverou@gmail.com)" <leaverou@gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT