[Webkit-unassigned] [Bug 181084] New: Special list-item counter starts from an incorrect number for ::before and ::after

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 21 09:35:00 PST 2017


            Bug ID: 181084
           Summary: Special list-item counter starts from an incorrect
                    number for ::before and ::after
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kizmarh at ya.ru

## Steps to reproduce the problem:

1. Go to https://codepen.io/kizu/pen/QaKjmJ
2. Look at the custom counters


1. Create an ordered list, optionally with a `start` attribute.
2. Add custom styles for the list items by using `counter(list-item)`.

## What is the expected behavior?

This counter should start from either the `1` or from the number set by `start` attribute.

## What went wrong?

The number the counters start from are wrong by one.

However, when the `value` attribute is used, the value is correct.

Edge browser renders everything in a correct way.

There is a hacky fix/workaround for this issue:

    ol.fix:not(*:root) > li:first-child:not([value]) {
      counter-increment: list-item 0;

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/20171221/059155cf/attachment-0001.html>

More information about the webkit-unassigned mailing list