Can't use XML editor to edit some attributes

Bug #1710670 reported by Michael Baycura
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

when using the XML editor to change node attributes I can't add new or custom parts to the style attribute. for example, for a text node that has style attribute:

"font-style:normal;font-weight:normal;font-size:100px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"

I can change the values of the different style parts, like "font-size:100px" to "font-size:50px", but i can't add a style part that isn't already there like "user-select:none".

If i try to add ";user-select:none" to the end of the style value string and then click the "set" button it deletes my user-select part and reverts to the pre-edit string.
If i use an external text editor and add "user-select:none" it shows up correctly in Inkscape but if i edit the style again in Inkscape with the XML editor it deletes my non-standard "user-select:none" part.

I found using a document level <style> element to be a better solution than working with individual element inline styles for this particular higher level application, but in general i think there should be an option for Inkscape to leave custom/non-standard attributes/sub-attributes alone unless requested to filter them out, like the options available when saving optimized or plain SVG.

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.