[Webkit-unassigned] [Bug 273557] New: CSS counter-reset of the implicit list-item counter results in different values for content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 1 11:17:00 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=273557

            Bug ID: 273557
           Summary: CSS counter-reset of the implicit list-item counter
                    results in different values for content
           Product: WebKit
           Version: Safari 17
          Hardware: Mac (Apple Silicon)
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ivanglmvc at gmail.com

Created attachment 471240

  --> https://bugs.webkit.org/attachment.cgi?id=471240&action=review

Ordered list with generated markers and counter content that differs regarding the starting value

CSS counter-reset of the implicit list-item counter results in different values for the generated content of ::marker and for the counter() function in pseudo-elements.

Steps to reproduce:
1. Create an ordered list (<ol> element) in HTML
2. Set the counter-reset property of that <ol> element to "list-item" plus an integer > 0 for its initial value (e.g., counter-reset: list-item 3;).
3. Note that the values of the ::marker pseudo-elements start counting at "4", while the values generated by the counter() function start counting at "3".

As far as the behavior in other common browsers is concerned, the value for the counter() function in our example should also start at "4".

Here is a CodePen with different setups: https://codepen.io/glmvc/pen/OJGYZEV

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240501/df1ba4a4/attachment.htm>


More information about the webkit-unassigned mailing list