Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Nov 10, 2025

This CL applies the last non-zero increment version algorithm1 that
accounts an initial counter value.

If we have an explicit start value, we don't apply a counter increment
of the list item. E.g., if the list is reversed, then plus one, else
minus one to the initial counter value. This is same as Firefox's
behaviour.

And this CL renames functions which is related an instantiating counters
to InitialCounter* for aligning with the spec.

Bug: 40682542
Change-Id: I8188288062461ca4c5689e530db3255f9c31ebcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7126701
Commit-Queue: Minseong Kim <[email protected]>
Reviewed-by: Daniil Sakhapov <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1542452}

This CL applies the last non-zero increment version algorithm[1] that
accounts an initial counter value.

If we have an explicit start value, we don't apply a counter increment
of the list item. E.g., if the list is reversed, then plus one, else
minus one to the initial counter value. This is same as Firefox's
behaviour.

And this CL renames functions which is related an instantiating counters
to `InitialCounter*` for aligning with the spec.

[1]: w3c/csswg-drafts#6797

Bug: 40682542
Change-Id: I8188288062461ca4c5689e530db3255f9c31ebcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7126701
Commit-Queue: Minseong Kim <[email protected]>
Reviewed-by: Daniil Sakhapov <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1542452}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit c43706f into master Nov 10, 2025
23 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7126701 branch November 10, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants