Forum Bugs

Multiple counter-resets

chops
Hello,

in Princexml 9.0 rev5 only the last counter-reset is applied:
.chapters {
counter-reset: page 1;
counter-reset: h1 -1;
}

I know, that the solution is, to use the multiple counter-reset notation:
.chapters {
counter-reset: page 1 h1 -1;
}

But the problem is hard to fix, if you don't know this behaviour (only the last survives) and you use counter-resets in different CSS selectors for the same element.

Thanks
Christian
mikeday
Yes, this is fundamental to the way CSS works: properties cascade, and the most specific overrules all the others. For counters, it would make more sense if the properties combined instead. But unfortunately it is too late to change this CSS mechanism now.