W3C home > Mailing lists > Public > www-style@w3.org > January 2006

'first-line' and 'first-letter' in CSS2.1/CSS3

From: <szukw000@arcor.de>
Date: Sat, 21 Jan 2006 23:17:34 +0100 (CET)
Message-ID: <21324932.1137881854316.JavaMail.ngmail@webmail-02.arcor-online.net>
To: www-style@w3.org

The CSS2.1/CSS3 specs are imprecise about the pseudo-elements
'first-line' and 'fist-letter'.

The CSS2.1 spec contains examples in 5.12.1, e.g.:

      <P:first-line>First paragraph
     <P:first-line>Second paragraph

The logical parent of <div:first-line> is the <div>;
the logical parent of <p:first-line> is the <p>.

The physical parent of <div:first-line> is the <p>;
the physical parent of the first <p:first-line> is the

Frome where do the children implicitly inherit? From the logical or the 
physical parent?

Does the statement at the end of 5.12.2:

   Properties set on :first-line are inherited by :first-letter, but are
   overridden if the same property is set on :first-letter.

mean: 'A pseudo-element always inherits from its physical parent,
       not from its logical parent.'?


Machen Sie aus 14 Cent spielend bis zu 100 Euro!
Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot.
Received on Saturday, 21 January 2006 22:18:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:22 UTC