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
using counter-increment inside of @page causes the script to break #180
Comments
What's the intended use case here, page numbering? Could you provide a bit more context? |
Mostly I was following this writeup about laying out a book with CSS, and he mentions
I was curious what the cause was, so I isolated this minimal repro from his code. He was indeed using the counters for page numbers. |
if you set a i believe that @fchasen is aware of this. |
A minimal repro:
This throws
TypeError: Cannot read properties of null (reading 'type')
.From the debugger, the problem appears to be that this line assumes
rule.ruleNode.prelude
is nevernull
. Here it is. The problematicruleNode
is the{type: 'Atrule', name: 'page' /*etc*/}
node.The text was updated successfully, but these errors were encountered: