Hello,
I don't understand the behaviour of inkscape when using it on a svg with css file written by hand:
When using with inkscape a file like this: <?xml version="1.0" encoding="utf-8" standalone="no"?> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="21cm" height="29.7cm" version="1.1"> <title>CSS</title>
<defs> <style type="text/css"><![CDATA[ .foo { fill:red; stroke:blue; } .bar { fill:blue; stroke:red; } ]]></style> </defs>
<path id="a_path" class="foo" d="M 0 0 L 200 200"/> </svg>
If I do something with #a_path (translate it or other), inkscape create automagically a style attribute which contain a full set of styling properties, including what I provide with .foo. But If I want to change the class in .bar, inkscape do this but keep its style attribute, overriding my CSS. I must delete the style attribute (which is, of course, prompty re-create) to obtain the style I want.
I know CSS integration is plan in the future, but waiting for it why not create a work-around ? For instance, I the user make some change in XML-editor, like add, change or remove an attribute, or move an element in the XML-tree, style attr of this element is automatically reconstruct.
Regards, Aurèle