pseudo element patch part 2

David Hyatt hyatt at apple.com
Fri Oct 24 16:12:03 CEST 2003


FIRST_LINE is the actual pseudo-style you'd encounter in CSS.  
FIRST_LINE_INHERITED is a way of asking for your style when you need to 
inherit from someone who has FIRST_LINE.

Here's an example:

div { color: red; }
div:first-line { color: green; }

<div><span>This text should be green and not red.<br>This text should 
be red.</span></div>

The <span> has no actual first-line pseudo-style, but for the portion 
of the span that's on the first-line he needs to compute a style that 
inherits from div:first-line and not from div.

dave

On Oct 24, 2003, at 2:04 PM, Dirk Mueller wrote:

> On Friday 24 October 2003 00:33, David Hyatt wrote:
>
>> Here's the rest of it.  first-letter/line inheritance are much better
>> now with this patch.
>
> I don't seem to get the difference between FIRST_LINE and
> FIRST_LINE_INHERITED. could you explain, please?
>
>
> -- 
>> Looking for a KDE-related EMail-Alias ? Get one at kdemail.net for 
>> FREE! <
> _______________________________________________
> Khtml-devel at mail.kde.org
> http://mail.kde.org/mailman/listinfo/khtml-devel



More information about the Khtml-devel mailing list