WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Placeholder text contrast

for

From: _mallory
Date: Mar 21, 2015 9:51AM


On Fri, Mar 20, 2015 at 10:53:41AM -0700, Jesse Hausler wrote:
> Thanks for the responses guys. That's very interesting that w3c
> specifically notes that placeholder text should meet the standard.
>
> I agree with that in principal, but it is curious that browsers fail this

I assumed that they deliberaltely chose to have failing contrast
specifically because these are not supposed to trick users into
thinking the fields are pre-filled.

I liked the idea of placeholders gaining passing contrast onfocus,
but haven't found a cross-browser way of styling placeholders with
CSS. A few engines, like webkit/blink, have proprietary vendor
extensions targetting placeholder, but that's not universal.

_mallory