<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
</HEAD>
<BODY>
On Thu, 2010-02-18 at 17:54 -0500, L. David Baron wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Thursday 2010-02-18 16:45 -0600, Tab Atkins Jr. wrote:
> Anne suggested in IRC using the pseudoclass approach, and pairing it
> with the ::value pseudoelem from the Basic UI Module. You could get
But the key question (from the Webkit bug) is really whether the UA
styles apply to the input itself or a pseudo-element inside of it.
If the UA style is
input:has-placeholder { color: ... }
then, as far as I can tell, there's no point to styling the ::value.
If the UA style is
input:has-placeholder::value { color: ... }
then you get the same cascading result as with an input::placeholder
pseudo-element (styles that don't select the pseudo-element don't
change the UA default), but with the addition that authors can style
the input in other ways.
-David
</PRE>
</BLOCKQUOTE>
<BR>
I think all the styling can be done without the ::value part, as regular styling of the element will change the styling of the value. (I hope I've got the understanding of ::value right, but Googling ignores the :: !)<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Thanks,<BR>
Ash<BR>
<A HREF="http://www.ashleysheridan.co.uk">http://www.ashleysheridan.co.uk</A><BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>