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

RE: CSS 2.1 Block inside inline behaviour

From: Michael Gannon <michael.gannon@blastradius.com>
Date: Fri, 26 Aug 2005 11:49:17 -0700
Message-ID: <A1C50561B5543D45A91A0E5505A79B9802ED51CF@luke.radius.ad>
To: "Ian Hickson" <ian@hixie.ch>
Cc: "David Woolley" <david@djwhome.demon.co.uk>, <www-style@w3.org>

> From: Ian Hickson [mailto:ian@hixie.ch] 
> > Yeah, my real question was CSS related - should the text 
> "Block level 
> > element" have a background colour of yellow?
> 
> No, because the inline "stops" before the block-level 
> element, and "resumes" after it.
> 
> 
> > From looking at the spec again, it seems that background 
> colour isn't 
> > inherited by default, but it does have an initial value of 
> transparent. 
> > Therefore, the text "Block level element" should have a 
> background of 
> > yellow, no?
> 
> No, because the inline only appears on line boxes, and the 
> block-level box 
> is between the line boxes.

Thanks for the help, it makes sense now.

Michael.
Received on Friday, 26 August 2005 18:49:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:40 GMT