[whatwg] Placeholder option for text input boxes

Nils Dagsson Moskopp nils-dagsson-moskopp at dieweltistgarnichtso.net
Sun Oct 5 10:09:11 PDT 2008


Am Samstag, den 04.10.2008, 09:30 -0500 schrieb Tab Atkins Jr.:

> If you mean pseudo-element, then certainly.  That would be precisely
> how I would go about pushing this into CSS.  You'd have a ::hint
> pseudoelement with a content property.  Browser stylesheets would
> default it to the value of the parent's @hint attribute.

Like "input:hint { content: attr(placeholder); }" ?

Cheers,

Nils




More information about the whatwg mailing list