Drawings using `fill="#color"` tag (lacking 'style' tag part) lose color info if broken apart
Summary:
So, I happened to randomly find a SVG online, that tagged the color of the item via fill="#ffffff"
, instead of normally with the style tag as style="fill:#ffffff"
. So, I happen to load up the file inside of Inkscape, and Inkscape has no problem displaying said color.
So, I then play around with said file, and decide to 'break apart' one of the items in it that have more than one part to it. When I did that, the item then completely loses it's color, and Inkscape shows it just as a 'black' shape ('unset' color).
You'd think in this case, since Inkscape has no problem displaying the fill="#ffffff"
on the item, that it could 'convert' the tag to the proper format when it broke apart the item instead of just deleting it completely.
This is replicated in both 1.3 & 1.1.2.
Steps to reproduce:
- Open attached file. fill_bug.svg
- Select the 'circle' you see on the screen (it's the only item in the file, since I made it as small as possible for the bug reproduction).
- Path -> "Break Apart" (Shift+Ctrl+K)
What happened?
The circle is split apart into 2 separate items, but it loses the 'white' color it had, and both items are now 'unset' color wise.
What should have happened?
The circle is split apart into 2 separate items, but keeps it's 'white' color, like items normally tagged using the 'style' tag.
=====
Maybe Inkscape here could 'somehow' automatically convert any item that uses the fill="#ffffff"
tag to style="fill:#ffffff"
if the drawing is modified by the user in any way, to possibly prevent the loss of the color here?
Version info
Inkscape 1.3 (0e150ed6c4, 2023-07-21) x64
Inkscape 1.1.2 (b8e25be833, 2022-02-05) x64
Windows x64