<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9100</bug_id>
          
          <creation_ts>2010-02-20 19:03:20 +0000</creation_ts>
          <short_desc>Crash with CSS counters</short_desc>
          <delta_ts>2012-08-24 05:57:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Amaya</product>
          <component>CSS</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>fred.wang</reporter>
          <assigned_to name="Vincent Quint">vincent.quint</assigned_to>
          <cc>carcone</cc>
    
    <cc>emilien.kia</cc>
    
    <cc>fred.wang</cc>
    
    <cc>Irene.Vatton</cc>
    
    <cc>tomsteven93</cc>
    
    <cc>vincent.quint</cc>
          
          <qa_contact name="Vincent Quint">vincent.quint</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32476</commentid>
    <comment_count>0</comment_count>
      <attachid>825</attachid>
    <who name="">fred.wang</who>
    <bug_when>2010-02-20 19:03:20 +0000</bug_when>
    <thetext>Created attachment 825
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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32507</commentid>
    <comment_count>1</comment_count>
    <who name="">fred.wang</who>
    <bug_when>2010-02-22 17:10:55 +0000</bug_when>
    <thetext>Thanks Vincent. The crash no longer happens, but it seems that there is now a problem with counters (I&apos;m not sure, but I don&apos;t remember having seen it before your commit). To annotate formulas, I use

math[display=&quot;block&quot;]:after {
  content: &quot;(&quot; counter(chapter) &quot;.&quot; counter(formula) &quot;)&quot;;
}

but the counter &quot;chapter&quot; is always 0 when used in this context. The strange thing is that &quot;chapter&quot; takes the right value when used in headers. I&apos;ve the same problem with the counter &quot;figure&quot;.

See http://www.cs.au.dk/~fwang/speciale/report/content.xhtml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32508</commentid>
    <comment_count>2</comment_count>
    <who name="Vincent Quint">vincent.quint</who>
    <bug_when>2010-02-22 17:34:20 +0000</bug_when>
    <thetext>I&apos;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&apos;ll try to resolve that soon.

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>825</attachid>
            <date>2010-02-20 19:03:20 +0000</date>
            <delta_ts>2010-02-20 19:03:20 +0000</delta_ts>
            <desc>Crash test</desc>
            <filename>CrashCounter.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>247</size>
            <attacher>fred.wang</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGh0bWwgeG1sbnM9Imh0dHA6
Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgo8aGVhZD4KICA8dGl0bGU+Q3Jhc2ggQ291bnRlcjwv
dGl0bGU+CiAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAgIG1hdGhbZGlzcGxheT0iYmxvY2si
XSB7IGNvdW50ZXItaW5jcmVtZW50OiBmb3JtdWxhOyB9CiAgPC9zdHlsZT4KPC9oZWFkPgo8Ym9k
eT4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>