Re: Styling HTML placeholder attribute

On 22/01/13 14:58, Simon Sapin wrote:
>> FWIW, the current Gecko implementation can be described as follow:
>> - pseudo-element;
>> - restricted set of rules: as '::first-line' + 'opacity';
>> - default style: "opacity: 0.54;" [2].
> 
> The last bit is in the UA stylesheet, isn’t it?

Yes. However, I believe it is quite important because if some UA
stylesheets use color: foo; and some opacity: bar;, authors will have to
write a lot of browser-specific CSS to be able to set their own
placeholder's style. Ideally, a spec should at least recommend something.

--
Mounir

Received on Tuesday, 22 January 2013 17:04:43 UTC