W3C home > Mailing lists > Public > www-style@w3.org > October 2005

Re: [CSS21] Inheritance and first-line

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 24 Oct 2005 04:58:44 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style Mailing List <www-style@w3.org>
Message-ID: <Pine.LNX.4.62.0510240443240.23945@dhalsim.dreamhost.com>

On Sun, 23 Oct 2005, Boris Zbarsky wrote:
> Not really, no.  For example, the background properties would be 
> inherited from the first-line.  Really, the only properties that would 
> not be inherited from there would be the display, position, and float 
> properties, since those completely determine what sort of rendering 
> object is created and where in the rendering tree it goes...

Hmm. (Counter properties too?)

> That's possible, yes.... It'd require some pretty major reworking of the 
> style system in Gecko, where there is a basic assumption that you 
> inherit your style from one and only one place.  I'd really rather not 
> have to even try doing this, which I guess means that I'd rather the 
> spec didn't specify it.  ;)

Well, what would you rather it did then?

> > Did you imply that getComputedStyle() always ignored ::first-line? 
> > That would be one way of defining it which would work.
> Still in Gecko, getComputedStyle will return the style of the first 
> rendering object associated to a node, generally.  Which means that 
> it'll take first-line into account... if there is a rendering object for 
> that node.  If there isn't one, it'll compute style based on inheritance 
> in the content tree. Which will ignore first-line, of course.


Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 24 October 2005 04:58:51 UTC

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