W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: CSS3: Suggestion for another list-style-type

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 1 Apr 2010 10:01:17 -0700
Cc: www-style@w3.org
Message-Id: <C83F91A2-17E5-44C6-BB96-039F29EC6958@gmail.com>
To: "Axel Dahmen" <brille1@hotmail.com>

On Apr 1, 2010, at 8:23 AM, Axel Dahmen wrote:

> "Brad Kemper" <brad.kemper@gmail.com> schrieb im Newsbeitrag news:EAC07CE0-E3D1-4AE9-BA67-79C33B5535C6@gmail.com...
>> When I mentioned problems with the cascade, the biggest one is that it is much easier to override list-style-type with a ::marker, than to do the reverse.
> 
> I see, I believed you were thinking about something like:
> 
> ::marker
>   {list-style-type: circle;
>   content: "#";
>   } 

Not exactly, but close. 'List-style type' would have no effect when set on the marker itself. It is something you set on an item that has 'display:list-item', not on the marker of that list item. So it would be more like this:

LI {  list-style-type: circle; }
LI::marker { content: "#";  /* this one overrides the circle */ }



Received on Thursday, 1 April 2010 17:01:55 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT