Eric A. Meyer wrote:

>>>   Believe it or not:
>>>
>>>     li:before { content: counters(list, ".") ". " }
>>
>> Sorry, but didn't make any difference me in both Opera 9 and 10  
>> alpha,
>> as well as Konqueror. The dot, of course, appeared, but it still gets
>> the scope wrong. Which version of Opera were you using?
>
>    Ah, now that I've made my test file more complex, I see the
> problems I suspect you're seeing.  Opera does indeed seem to botch
> 'counters()' handling.  It works as expected on
> <http://meyerweb.comeric/css/tests/counters.html> but not on the
> brand-new <http://meyerweb.comeric/css/tests/counters2.html>.  The
> difference between the two is really that the first one has one
> "outer" list, and the second has multiple "outer" lists.  (Where
> "outer" means "not nested inside another list".)
>    Interesting.

Yeah, when you have only one (affected) list on the page Opera works  
fine, most of the time. Once you have two lists or more, the results  
are interesting to say the least, and even vary depending on the state  
of the stock market, the amount of sunlight or whatever. Completely  
unpredictable, anyway.

As I said, bug in Opera, and I don't know any fix on our side. Iirc, I  
filed a bugreport with Opera some years ago.

using
ol {counter-reset: itemnr;}
li {display:block;}
li:before {
        content: counter(itemnr, decimal) ". ";
        counter-increment: itemnr;
        }

works fine, but of course you don't get the fancy numbering scheme  
(1.1, 2.1.3, etc). Could just as well use list-style-type.

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to