W3C home > Mailing lists > Public > www-style@w3.org > September 2009

[CSS21] First-Line Clarification

From: Joshua Patterson <joshpatt@microsoft.com>
Date: Wed, 9 Sep 2009 23:03:25 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <73757E6F78F08642B8011A6BDDCE282F08881E88@TK5EX14MBXC112.redmond.corp.microsoft.com>
Hi,

I've been trying to understand First-Line but it seem ambiguous.

The specification says: "The :first-line pseudo-element applies special styles to the contents of the first formatted line of a paragraph", but it doesn't define what a paragraph is.  It later states that "The 'first formatted line' of an element may occur inside a block-level descendant in the same flow".  It seems like although most browsers (IE 8, Firefox, Chrome, Safari and Opera) define a paragraph to be the first formatted line of an element, but the specification leaves it up to the UA what a paragraph is. Is this by design or should the first-line pseudo-element always apply to the first formatted line of an element?

Thanks

Josh
Received on Thursday, 10 September 2009 09:26:06 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT