- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 10 Sep 2009 08:22:55 -0500
- To: Joshua Patterson <joshpatt@microsoft.com>
- Cc: "www-style@w3.org" <www-style@w3.org>
On Wed, Sep 9, 2009 at 6:03 PM, Joshua Patterson <joshpatt@microsoft.com> wrote: > 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? The use of the word "paragraph" there isn't referring to anything specific; it's just a term taken from general usage. It's referring to the contents of the element, so all the browsers you looked at are indeed correct. ~TJ
Received on Thursday, 10 September 2009 13:23:54 UTC