-
Notifications
You must be signed in to change notification settings - Fork 2
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
REx_css-tools.xsl lexical analysis failed #14
Comments
Yes, the grammar didn’t allow the media query to start with a media feature such as I noticed that Firefox accepts something like In CSS 3, Please update css-tools and see whether your input will be processed correctly now. And thanks for the bug report! |
Thank you Gerrit, Unfortunately I have a quite complex css used by a client in proprietary epub reader and even when deleting the offending css selectors (for example
The workaround for me is quite easy and consists in deleting the source css files and then injecting them back into the generated epub along with the relevant manifest entries in a postprocessing pipeline; this works well so I am not asking any fix on your side. I will open a new issue on the epubtools regarding the possibility to skip the css parsing. |
When parsing this css:
@media (max-width: 709px) { h1, h2, h3, h4, h5, h6 { font-size: 1em; } }
Rex throws this error
lexical analysis failed
while expecting [',', 'amzn-kf8', 'amzn-mobi', 'amzn-mobi7', 'and', 'not', 'only', 'or', 'screen']
probably the grammar needs to be updated.
Thanks
The text was updated successfully, but these errors were encountered: