weisJ/jsvg

CSS is not parsed correctly

Closed this issue · 1 comments

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 commented

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