Skip to content

[css-lists] Contradictory normative requirements for implicit 'list-item' counter? #4167

Description

@domenic

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

Unless the counter-increment property explicitly specifies a different increment for the list-item counter, it must be incremented by 1 on every list item, at the same time that counters are normally incremented.

but then later

UAs and host languages should ensure that the list-item counter values reflect the underlying numeric value dictated by host language semantics when setting up list item styling in their UA style sheet and presentational hint style mappings.

Not really sure how to word this requirement, but the following example is expected to work.

In particular consider cases like <ol reversed> or <li value="">. The host language specifies an algorithm for figuring out the "underlying numeric value". But that value decreases. This seems to contradict the above "must" that it be incremented by 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions