[whatwg] Customize HTML5 forms placeholder style

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

Received on Monday, 22 February 2010 09:01:57 UTC