CSS 3 rgba and hsla notation (color with alpha) is not supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
When importing an SVG with rgba or hsla colors, they are not recognized as valid. If they are set in a style attribute, they are discarded by the cleanup.
The CSS 3 Color spec [1] has been a W3 recommendation since 2011. It's stable. It's supported by all web browsers since IE9. Although the rgba/hsla colors do not add any new functionality when authoring new SVG, they are widely in use in graphics made for the web.
At the very least, the parser should be able to recognize these colors and convert them to solid colors with fill-opacity/
It may be worth dealing with this at the same time as Bug 169019, which relates to the fact that fill-opacity and stroke-opacity cannot be set from the gradient/pattern dialogs. They are instead set by the A value in the RGBA/HSLA color pickers. Also Bug 1028505, which relates to non-intuitive behavior of the overall opacity slider when editing gradients.
tags: | added: color css |
Changed in inkscape: | |
importance: | Undecided → Wishlist |
Changed in inkscape: | |
status: | New → Confirmed |
Hi, this has been suggested on Gitlab as well: https:/ /gitlab. com/inkscape/ inbox/issues/ 1195
Closed by https:/ /gitlab. com/jhofinger