Re: Styling HTML placeholder attribute

On Jan 23, 2013, at 5:12 PM, Lea Verou <lea@w3.org> wrote:

> The main issue with that is that if authors don't style it but they do style input, the UA stylesheet can't override that with input:not(:completed), similarly to how a UA¡¯s a:hover won't override the author¡¯s a. But a :placeholder pseudo-class has the same issue. I wonder how browsers implementing placeholders with a pseudo-class have solved this. Are they violating the cascade or am I missing something?

A UA stylesheet with an 'a:hover' rule defined should override what the author has for the same property in an 'a' rule, because 'a:hover' has more specificity. 

Received on Thursday, 24 January 2013 05:41:11 UTC