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

CSS is not parsed correctly #46

Closed
develar opened this issue Aug 3, 2023 · 1 comment
Closed

CSS is not parsed correctly #46

develar opened this issue Aug 3, 2023 · 1 comment

Comments

@develar
Copy link

develar commented Aug 3, 2023

SVG:

<svg xmlns="http://www.w3.org/2000/svg" id="icons" viewBox="0 0 16 16"><defs><style>.cls-1{fill:#6e6e6e}</style></defs><path d="M5 5h6v1H5zM5 7h6v1H5zM5 9h6v1H5z" class="cls-1"/><path d="M2 2h12v12H2V2Zm2 2v8h8V4H4Z" style="fill-rule:evenodd;fill:#6e6e6e"/></svg>

expected:
Screenshot 2023-08-03 at 15 13 10

actual:
Screenshot 2023-08-03 at 15 12 41

Error in the log:

WARNING: Expected 'SEMICOLON' but got 'Token{type=EOF, data='null'}'
@weisJ
Copy link
Owner

weisJ commented Aug 30, 2023

Yeah the CSS "parser" is far from spec compliant (it's not trying to be), so I expect these sort of issues to pop up :D

Fixed in 6471e61

@weisJ weisJ closed this as completed Aug 30, 2023
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