Inkscape ignores style tag with leading semicolon
Continuation of https://bugs.launchpad.net/inkscape/+bug/518677
Steps to reproduce:
- open Inkscape
- creage a rectangle
- save the file
- manually edit the file so that the style tag starts with a leading semicolon (such as
;fill:blue;
) - open the file in Inkscape
What happened?
The style tag is ignored.
What should have happened?
The style tag is applied. While such a semicolon is unnecessary, it's legal: https://www.w3.org/TR/css-syntax-3/#declaration-list-diagram
In 0.92.4, the style tag was deleted when saving the file again. That fortunately doesn't happen anymore.
A style tag such as fill:blue;;stroke:black;
is read correctly.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (c990a67c, 2020-04-09)
- Operating System: Windows 10
- Operating System version: 10.0.18362
Edited by Jonathan Neuhauser