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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>187718</bug_id>
          
          <creation_ts>2018-07-16 17:46:34 -0700</creation_ts>
          <short_desc>[css-counters][css-display-contents] &quot;display: contents&quot; breaks counter incrementing???</short_desc>
          <delta_ts>2024-10-10 20:50:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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 name="jonjohnjohnson">hi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>kyle.bavender</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1442571</commentid>
    <comment_count>0</comment_count>
    <who name="jonjohnjohnson">hi</who>
    <bug_when>2018-07-16 17:46:34 -0700</bug_when>
    <thetext>CSS counters break, at least do not increment, when using &quot;display: contents&quot; on the elements ancestor within the &quot;counter-reset&quot; container.

testcase -&gt; http://jsfiddle.net/5rcjk9gv/3/

Test case is straightforward, the first box does not use display: contents, the second box uses it on ancestors of the items that want access to the incremented counter value, but it&apos;s broken :(

This isn&apos;t broken in chrome or firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442572</commentid>
    <comment_count>1</comment_count>
    <who name="jonjohnjohnson">hi</who>
    <bug_when>2018-07-16 17:52:34 -0700</bug_when>
    <thetext>Sorry testcase url is -&gt; http://jsfiddle.net/5rcjk9gv/4/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1442852</commentid>
    <comment_count>2</comment_count>
    <who name="jonjohnjohnson">hi</who>
    <bug_when>2018-07-17 17:07:42 -0700</bug_when>
    <thetext>Pertinent (open) issue in csswg drafts relating to display box generation and counter interactions, though not exactly about the bug here in safari... https://github.com/w3c/csswg-drafts/issues/674</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611380</commentid>
    <comment_count>3</comment_count>
    <who name="Kyle Bavender">kyle.bavender</who>
    <bug_when>2020-01-27 06:23:51 -0800</bug_when>
    <thetext>Confirmed this is still an issue with Safari as of 13.0.4. Does not match either Chrome or Firefox&apos;s behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067118</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-10-10 20:50:11 -0700</bug_when>
    <thetext>The testcase in https://jsfiddle.net/5rcjk9gv/4/
gives the same results on 

Safari Technology Preview  205           20621.1.2.111.4
Firefox Nightly            133.0a1       13324.10.7
Google Chrome Canary       131.0.6768.0  6768.0


with:

1
2
3
1
2
3


I&apos;m closing. If the issue still persists this needs a new test case illustrating the problem. Please do not hesitate to open a new bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>