qux

Automatic counters in CSS seems to work in Konqueror, not in IE6/IE7 and with bugs in firefox.

quux

quuux

quuuux

foo

frob

fuzz

buzz

eof

The stylesheet used for this page is:

    h1:before {
        content: "Chapter " counter(chap) " ";
        counter-reset: section;
        counter-increment: chap;
    }
    h2:before {
        content: "Section " counter(chap) "." counter(section) " ";
        counter-increment: section;
        counter-reset: subsection;
    }
    h3:before {
        content: "Subsection " counter(chap) "." counter(section) "." counter(subsection) " ";
        counter-increment: subsection;
    }