CSS class references being persisted in style attributes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Unassigned |
Bug Description
When you make a CSS class reference in an element
Inkscape grabs the CSS class definition and sticks it
into the style attribute. The problem with this
approach is that if you make a change to the CSS
definition, Inkscape doesn't update the style
attribute, and you're now stuck with an out-of-date
look and feel. Here's how you reproduce this problem:
(1) Open the XML editor and add a class reference to
one of the nodes.
(2) Attempt to delete the style attribute. Inkscape
will instead replace the current style definition, with
the definition found in the CSS class reference.
(3) Update the CSS class definition. Notice that the
style attribute is not updated, and that you must
manually delete the style reference in order to see the
change reflected in the element.
Changed in inkscape: | |
status: | Incomplete → Confirmed |
summary: |
- CSS definitions being persisted in style attributes + CSS class references being persisted in style attributes |
Changed in inkscape: | |
status: | Confirmed → Invalid |
AFAICT setting class has no effect at all.
http:// wiki.inkscape. org/wiki/ index.php/ CSS_Support seems to indicate that a style element inside defs should have effect, but this doesn't seem to be the case.