Skip to content

[css-lists-3] counter-increment and counter-reset overflow/underflow #9029

@vitorroriz

Description

@vitorroriz

Specification says:

UAs may have implementation-specific limits on the maximum or minimum value of a counter. If a counter reset, set, or increment would push the value outside of that range, the value must be clamped to that range.

However, gecko and blink behavior is:

counter-reset(<overflow/underflow-int-32-number>) : clamp to range
counter-increment() : ignore operation, keep current value

WebKit behavior is:

counter-reset(<overflow/underflow-int-32-number>) : clamp to range
counter-increment() : overflow/underflow

I'd like to discuss whether the expected behavior should be "clamp to range", or we should ignore the operation for the counter-increment() case and update the spec, since 2 vendors already do that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions