Closed abathur closed 1 year ago
You may try to report this against cssselect2, but it is known that css support in svglib is still limited, so yes, it's not a surprise.
liZe responded (and closed) in https://github.com/Kozea/cssselect2/issues/22#issuecomment-860178689:
Hello!
The bug is in svg2pdf: it calls
compile_selector_list
on each rule prelude it finds, but this only works when rules preludes are actually selectors. Here, you have an at-rule (@import
), not a selector list with rules, that’s why it crashes.
Just trying out svglib for the first time today and ran into this error. I couldn't find another report, so I figured I should at least document it. I'm not really surprised by this, so I realize it may be a can't/won't-fix.