This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Created attachment 825 [details] Crash test I was trying to use CSS counters to annotate MathML formulas with numbers and I discovered a crash. I give a reduced testcase (see attachment).
Thanks Vincent. The crash no longer happens, but it seems that there is now a problem with counters (I'm not sure, but I don't remember having seen it before your commit). To annotate formulas, I use math[display="block"]:after { content: "(" counter(chapter) "." counter(formula) ")"; } but the counter "chapter" is always 0 when used in this context. The strange thing is that "chapter" takes the right value when used in headers. I've the same problem with the counter "figure". See http://www.cs.au.dk/~fwang/speciale/report/content.xhtml
I'll investigate this further, but I suspect the problem comes from using several namespaces in conjonction with counters. Here, the selector uses elements and attributes from the MathML namespace, whereas the content is based on a counter that is incremented by elements from the HTML namespace (I guess). This may well confuse Amaya. I'll try to resolve that soon.