[Webkit-unassigned] [Bug 273557] 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 8 05:53:20 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=273557
Karl Dubost <karlcow at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |karlcow at apple.com
--- Comment #3 from Karl Dubost <karlcow at apple.com> ---
To minimize the interaction, I wanted to see what a very simple testcase would do.
<style>
ol.list-item {counter-reset: list-item 78;}
ol.list-item li {counter-increment: list-item 1;}
ol.list-item li::after {content: " - counter: " counter(list-item);}
</style>
<ol class="list-item">
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
<li>Fifth</li>
</ol>
We get all sort of things:
STP 193 (Safari)
79. First - counter: 78
80. Second - counter: 79
81. Third - counter: 80
82. Fourth - counter: 81
83. Fifth - counter: 82
Firefox Nightly 127.0a1 (2024-05-06)
79. First - counter: 79
80. Second - counter: 80
81. Third - counter: 81
82. Fourth - counter: 82
83. Fifth - counter: 83
Chrome Canary 126.0.6452.0
1. First - counter: 79
2. Second - counter: 80
3. Third - counter: 81
4. Fourth - counter: 82
5. Fifth - counter: 83
--
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/20240508/d6154173/attachment.htm>
More information about the webkit-unassigned
mailing list