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

Parsing fails for @page rules with margins #764

Open
kovidgoyal opened this issue Jan 8, 2020 · 1 comment
Open

Parsing fails for @page rules with margins #764

kovidgoyal opened this issue Jan 8, 2020 · 1 comment

Comments

@kovidgoyal
Copy link

echo '@page { margin-bottom: 0 }' | csslint /dev/stdin                                                                  


csslint: There is 1 problem in /dev/stdin.

stdin
1: error at line undefined, col undefined
Fatal error, cannot continue: Cannot set property 'margin-bottom' of undefined
csslint --version                                                                                                       
v1.0.4
@kovidgoyal
Copy link
Author

And here is a stacktrace against csslint.js

csslint.js:7841:TypeError: Cannot set property 'margin-bottom' of undefined
    at Parser.<anonymous> (userscript:csslint.js:9858:34)
    at Parser.fire (userscript:csslint.js:6478:30)
    at Parser._declaration (userscript:csslint.js:2523:26)
    at Parser._readDeclarations (userscript:csslint.js:3062:41)
    at Parser._page (userscript:csslint.js:1481:22)
    at Parser._stylesheet (userscript:csslint.js:871:38)
    at Parser.parse (userscript:csslint.js:3168:22)
    at EventTarget.api.verify (userscript:csslint.js:7839:20)

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

1 participant