On Sat, 24 Mar 2007, francky wrote:
> I never believe things without a testpage
A useful principle. :-)
> Without a counter setting...
- -
> ...my Firefox2 doesn't give any number except zero.
Oh my... you're right. My test page had a syntax error in it, a lone
<ul> tag as a holdover from a previous test. It magically (well, not
_that_ mysteriously) makes the numbers run.
> Looking to the css2.1 specs, I cannot find a prescriptive or forbidding rule
> for numbering of elements with a { display: list-item; }.
It seems to be pretty silent about the numbering indeed, except when the
numbering is explicitly set using counters.
> Then browsers should be free to have an own interpretation. For me: the FF
> numbering seems to be a bug (probably FF is expecting always a counter
> setting), the IE method is not ... the top, and Opera wins.
Actually the FF numbering might be the most reasonable on the grounds that
if you make an element a list item outside the special context created by
<ul> or <ol> in HTML, you can be expected to create and use the counters
(if you use numbering-type list markers).
> So I guess the we have to wait until IE is supporting the "counter" property;
> and the only way for the meantime is falling back on some DOM-scripting.
> Or just a not automated typing of the numbers in the h2's.
> Right?
That pretty much summarizes it. Besides, even if automatic numbering
worked the simple way, it would generate numbers with a period ("42."),
which is not the correct numbering for headings according to ISO 2145
("Numbering of divisions and subdivisions in written documents"). Using
counters, generated content, and suppression of markers, we can create ISO
2145 conformant numbering - though currently at a high cost, since IE
would happily follow the rule list-style-type: none and ignore all
attempts to create numbers with generated content. :-(
--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/