W3C home > Mailing lists > Public > www-style@w3.org > March 2002

Re: Question on the spec re List Backgrounds

From: Henri Sivonen <hsivonen@niksula.hut.fi>
Date: Sun, 31 Mar 2002 17:33:05 +0300
To: www-style@w3.org
Message-Id: <36BC06A6-44B4-11D6-8D37-003065B8CF0E@niksula.hut.fi>
On Sunday, March 31, 2002, at 03:32 , Nicholas Atkinson wrote:

> <ul style="background: red;">
>     <li>Unordered List Item</li>
>     <li>Unordered List Item</li>
> </ul>
>  
> The background of the list item text will obviously be red.  But 
> there will be a left-hand margin and bullet generated before each 
> list item text.  Should the background of this bullet and left-hand 
> margin be red or the background colour of its parent block? 

It depends on the margins and padding of the <ul> and <li> elements.

> In IE 6 and Opera 6.01 (on Windows) the bullet and margin do not 
> have a red background.  But in Netscape 6.1 (on Windows) 
> the background of the bullet and margin is red.
>  
> Who is correct as per the spec?

Both when you leave the padding and margins up to the UA stylesheet, 
because there is no normative UA style sheet. See 
http://www.subotnik.net/style/list-box-test.html

--
Henri Sivonen
hsivonen@niksula.hut.fi
http://www.hut.fi/u/hsivonen/
Received on Sunday, 31 March 2002 09:34:10 GMT

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