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

parseError on @media print { #110

Open
przemyslawjanpietrzak opened this issue May 28, 2021 · 0 comments
Open

parseError on @media print { #110

przemyslawjanpietrzak opened this issue May 28, 2021 · 0 comments

Comments

@przemyslawjanpietrzak
Copy link

const cssom = require("cssom"); //version 0.4.4

const styles = `@-moz-document url-prefix(){@media print{.enabled-vuetify-global-styling .v-application,.enabled-vuetify-global-styling .v-application--wrap{display:block}}}`;

cssom.parse(styles);

throws

Uncaught Error: Unexpected } (line 1, char 157)
    at parseError (/Users/przemyslawbeigert/code/bethink/wnl-platform/node_modules/cssom/lib/parse.js:62:15)
    at Object.parse (/Users/przemyslawbeigert/code/bethink/wnl-platform/node_modules/cssom/lib/parse.js:386:7) {
  line: 1,
  char: 157,
  styleSheet: CSSStyleSheet {
    parentStyleSheet: null,
    cssRules: [ [CSSMediaRule] ]
  }
}
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