Skip to content

[css-lists] How does the list-item counter affect display? #4168

@domenic

Description

@domenic

https://drafts.csswg.org/css-lists-3/#list-item-counter

In the following example, the list is modified to count by twos:

ol.evens { counter-increment: list-item 2; }

A three-item list would be rendered as

2. First Item
4. Second Item
6. Third Item

I can't find a normative requirement to support this rendering. The normative requirements I can find are all about the value of the list-item counter (although I think there are contradictions; see #4167). There is nothing in the spec that says that the list-item counter is to be used in rendering.

Perhaps the example is missing a ol.evens::marker { content: counters(list-item,'.') '.'; }, similar to the following Example 17?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions