W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] Customize HTML5 forms placeholder style

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 18 Feb 2010 17:27:03 -0500
Message-ID: <20100218222703.GA23361@pickering.dbaron.org>
On Thursday 2010-02-18 13:58 -0600, Tab Atkins Jr. wrote:
> I agree that having a pseudoelement for the placeholder text is a good
> idea.  Perhaps you could bring it up on the www-style list so we can
> decide precisely what properties should apply to it?  It seems
> reasonable to apply the same restrictions that we currently put on
> ::first-line (http://www.w3.org/TR/CSS2/selector.html#first-line-pseudo,
> last paragraph of the section).

It doesn't need to be nearly as restricted as :first-line, since
it's tree-like.  It's much more like :before and :after.

(For more on the distinctions, see the comment I wrote at
http://hg.mozilla.org/mozilla-central/file/4cabe72ad940/layout/style/nsCSSPseudoElements.h#l50
, and note that it mentions a third intermediate category, in which
some proposed XForms pseudo-elements, and perhaps some future
pseudo-elements, would fit.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 18 February 2010 14:27:03 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC