This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15571 - When *exactly* do elements not increment or reset a counter?
Summary: When *exactly* do elements not increment or reset a counter?
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSS Level 2 (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Bert Bos
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-15 16:43 UTC by Anton P
Modified: 2012-12-04 00:54 UTC (History)
0 users

See Also:


Attachments

Description Anton P 2012-01-15 16:43:49 UTC
Reported by Peter Moulder

12.4.3 (Counters in elements with 'display: none') says:

  # An element that is not displayed ('display' set to 'none') cannot
  # increment or reset a counter.
  # [...]
  # Pseudo-elements that are not generated also cannot increment or
  # reset a counter.
  # [...]
  # Elements with 'visibility' set to 'hidden', on the other hand, do
  # increment counters. 

Clearly the heading for 12.4.3 is not ideal since it described counter display in various cases, not just in elements with 'display:none'.

Peter queries whether other types prevent the increment or a reset of a counter:
  * descendents of display:none elements
  * suppressed descendents of 'display:table-column' and
    'display:table-column-group' elements
  * 'display:table-column' and 'display:table-column-group' elements
    (noting that 17.2 (The CSS table model) says:
        # Elements with 'display' set to 'table-column' or
        # 'table-column-group' are not rendered (exactly as if they had
        # 'display: none')

Conversation begins: http://lists.w3.org/Archives/Public/www-style/2011May/0506.html
Bug description:
http://lists.w3.org/Archives/Public/www-style/2011May/0506.html
http://lists.w3.org/Archives/Public/www-style/2011May/0524.html