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

Re: [CSS21] First-Line Clarification

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 10 Sep 2009 08:22:55 -0500
Message-ID: <dd0fbad0909100622m237d49d5lb99e9cc04495551b@mail.gmail.com>
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.

Received on Thursday, 10 September 2009 13:23:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:39 UTC