CSS 3 rgba and hsla notation (color with alpha) is not supported

Bug #1489187 reported by Amelia Bellamy-Royds
16
This bug affects 2 people
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/stroke-opacity/stop-opacity as appropriate. Ideally, Inkscape would be able to actually use these colors in the format the author chose.

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.

[1]: http://www.w3.org/TR/css3-color/

Tags: color css
su_v (suv-lp)
tags: added: color css
Changed in inkscape:
importance: Undecided → Wishlist
su_v (suv-lp)
Changed in inkscape:
status: New → Confirmed
Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

Hi, this has been suggested on Gitlab as well: https://gitlab.com/inkscape/inbox/issues/1195

Closed by https://gitlab.com/jhofinger

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.