Firefox CSS counter reset doesn't work in <body>

Bug #1050861 reported by Muelli
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a simple CSS, i.e.

    body {
        counter-reset: mySectionCounter, mySubSectionCounter;
    }
    h1 {
        counter-increment: mySectionCounter;
        counter-reset: mySubSectionCounter;
    }
    h1:after {
    }
    h1:before {
      content: 'ARTICLE ' counter(mySectionCounter, upper-roman) ' - ';
    }

the intention is to have the mySectionCounter with a very broad scope to use it as h1 counter. Pretty much like the example here: http://www.w3schools.com/cssref/pr_gen_counter-reset.asp
But that doesn't seem to work as simple HTML fragment indicates:

<div class="section" id="name">
<h1><a class="toc-backref" href="#id7">Name</a></h1>
<p>The name of the Corporation shall be GNOME Foundation (the &quot;<strong>Corporation</strong>&quot;), a California
Nonprofit Public Benefit Corporation.</p>
</div>
<div class="section" id="offices">
<h1><a class="toc-backref" href="#id8">Offices</a></h1>
<div class="section" id="principal-office">
<h2><a class="toc-backref" href="#id9">Principal Office</a></h2>
<p>The principal office for the transaction of business of the Corporation shall be determined
and may be changed from time to time by the Board of Directors (the &quot;<strong>Board</strong>&quot;).</p>
</div>
<div class="section" id="other-offices">
<h2><a class="toc-backref" href="#id10">Other Offices</a></h2>
<p>The Board may at any time establish branch or subordinate offices at any place or places
where the Corporation is qualified to do business.</p>
</div>
</div>

You can see the HTML with the embedded CSS here: http://people.gnome.org/~tobiasmue/bylaws2012/bylaws.html

When viewing the CSS in Firebug, i.e. open the firebug view, then click the "CSS" tab, the body element doesn't have a rule. So my guess is that the counter-reset CSS command is not well recognized.

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1050861

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
affects: linux (Ubuntu) → firefox (Ubuntu)
summary: - Firefox CSS counter reset doesn't in <body>
+ Firefox CSS counter reset doesn't work in <body>
Changed in firefox (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.