[webkit-dev] Proposal to remove list-item special counter

Eric Seidel eric at webkit.org
Wed Aug 15 15:41:49 PDT 2012


Since it sounds like it doesn't do anything, then yes.  Removing it
sounds like the correct course of action.  Someone who later
implements ::marker or lands CSS3-list tests, can revert your patch.

On Wed, Aug 15, 2012 at 2:29 PM, Elliott Sprehn <esprehn at chromium.org> wrote:
> WebKit is the only browser that implements the magic counter named
> "list-item" and we have no tests for it. This is from the CSS3 Lists module
> (http://dev.w3.org/csswg/css3-lists/). This special counter was added back
> in the initial implementation of CSS counters 6 years ago.
>
> ex.
>
> <style> li:before { content: "(" counter(list-item) ")"; } </style>
>
> <ol>
>  <li>
> </ol>
>
> It's not useful since we don't support the ::marker psuedo element, nor does
> any other browser. The above example outputs (2) since the implied counter
> increment is on the list marker which we don't actually support. I can't
> find references to this thing in Google outside the spec itself either.
>
> Can I remove this feature?
>
> - Elliott
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev
>


More information about the webkit-dev mailing list