If stylesheet is surrounded by comment tags without whitespace padding, it is ignored.
brought up in https://bugs.launchpad.net/inkscape/+bug/794472
Steps to reproduce:
- open following file in Inkscape
What happened?
- rectangle renders black in inkscape
- File has:
<style>/* hi */.redthings {fill: #f22;}/* bye */</style>
- Adding spaces fixes the problem:
<style>/* hi */ .redthings {fill: #f22;} /* bye */</style>
- Real use case would be CDATA,
<style>/* <![CDATA[ */.redthings {color: red;}/* ]]> */</style>
- occurred in https://github.com/tracespace/tracespace/issues/29, though I guess they might add whitespace now
I haven't checked that it is valid, but firefox renders it fine.
What should have happened?
- rectangle renders red as CSS is applied.
Version info
- Inkscape 1.2-dev (c903a5148f, 2022-01-31) Linux Mint 20
- Inkscape 0.92.5 (0ad1ac969f, 2020-08-06) Linux Mint 20