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

list-style-position

From: Roger Larsson <roger.larsson@incrementa.se>
Date: Thu, 7 Aug 2003 21:17:12 +0200
To: www-style@w3.org
Message-Id: <200308072117.12342.roger.larsson@incrementa.se>

I would appreciate if someone would like to clarify the implications of  the 
"list-style-position" property.

start---------------from [CSS 2.1 28 january 2003]
12.6 lists 
list-style-position
This property specifies the position of the marker box in the principal block 
box. Values have the following meanings: 
	outside 
		The marker box is outside the principal block box. CSS 2.1 does 
		not specify the precise location of the marker box. 
	inside 
		The marker box is the first inline box in the principal block box, 
		after which the element s content flows.
end-------------------

I have implemented  "outside" by first creating an anonymous block. Inside 
this block I put an inline element containing the marker, followed by the 
list item element box behaving as if beeing an inline-block. The properties 
are applied to the list item element as if it was not wrapped in an anonymous 
block. The property values of the anonymous block and the marker element are 
inherited for inherited properties, otherwise initial. Is this way of 
implementing it correct according to all aspects of the specification, or if 
not, which behaviour will be wrong?

Where should I place :before content in a list item element having 
list-style-position=inside, before or after the marker?

// Roger
Received on Thursday, 7 August 2003 15:17:31 GMT

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