[whatwg] Customize HTML5 forms placeholder style

Tab Atkins Jr. jackalmage at gmail.com
Mon Feb 22 09:01:57 PST 2010


On Mon, Feb 22, 2010 at 10:58 AM, Dean Edwards <dean at edwards.name> wrote:
> It's a shame that we can't have generated content for <input> elements
> because I'd love to be able to do this:
>
> input[required]:no-value:after {
>  content: "*required";
>  vertical-align: super;
>  color: red;
> }
>
> But you can't have everything. ;)

Sure you can.  ^_^

input[required]:no-value::outside::after {
  ...
}

Now if we can just get the Generated and Replaced Content Module implemented...

~TJ



More information about the whatwg mailing list