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

Re: [CSS21] Inheritance and first-line

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 24 Oct 2005 09:38:19 -0500
Message-ID: <435CF1DB.5020001@mit.edu>
To: www-style@w3.org

Ian Hickson wrote:
> Hmm. (Counter properties too?)

Not sure about those, to be truthful....  Might depend on the order in 
which incremental changes happen.  ;)

>> 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?

So the problem as I see it is that on the one hand we want the 
background properties to apply to the entire line (so we don't want to 
break up the first-line and make it a descendant of the inlines on the 
line) but on the other hand we want the first-line to be able to affect 
color of the text, so somehow its style needs to inherit down to the 
text, etc.  Is that about right?

I realize that's not an answer to your question; I'm still working on 
clarifying which problems we're trying to solve here.

>> Still in Gecko, getComputedStyle will return the style of the first
 >> ...
> Interesting.

I suppose that's one way to describe it... ;)

Received on Monday, 24 October 2005 14:36:07 UTC

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