[whatwg] Placeholder option for text input boxes

On Sun, Oct 5, 2008 at 1:33 PM, Garrett Smith <dhtmlkitchen at gmail.com> wrote:
> On Sun, Oct 5, 2008 at 1:07 PM, L. David Baron <dbaron at dbaron.org> wrote:
>> On Sunday 2008-10-05 12:20 -0700, Garrett Smith wrote:

>
> What other use case did you have?
>

Were you t hinking of allowing styling of the placeholder text to have
values that would apply only to the placeholder, such as:

{
  color: #999;
  font-family: Tahoma;
}

?

>> I think something more like the following would work better:
>>  input[:value=""] { background: url(bang.gif) no-repeat center; }
>> perhaps with a default of:
>>  input[:value=""] { contents: attr(placeholder); }
>


> Garrett
>
>> -David
>>
>> --
>> L. David Baron                                 http://dbaron.org/
>> Mozilla Corporation                       http://www.mozilla.com/
>>
>

Received on Sunday, 5 October 2008 15:52:54 UTC