Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renderer supports counter-reset but not counter-set #983

Open
radagasus opened this issue Oct 15, 2024 · 1 comment
Open

Renderer supports counter-reset but not counter-set #983

radagasus opened this issue Oct 15, 2024 · 1 comment

Comments

@radagasus
Copy link

radagasus commented Oct 15, 2024

You can test this in the sandbox :

<html>
<head>
<style>

li {
    list-style-type: none;
}

li::before {
    counter-increment: item;
    content: counters(item, ".") ". ";
}
</style>
</head>
<body dir="auto">

<ol style="counter-set: item 4">
<li>test</li>
<li>test</li>
<li>test</li>
<li>test</li>
</ol>

</body>
</html>

The styling does not work, but counter-reset: item 4 does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@radagasus and others