On Tue, May 3, 2016 at 4:24 PM, Tavmjong Bah <tavmjong@...8...> wrote:
> I have been seeing the current CSS support taking in
consideration
> the
> process of tracking the source of the property value of each object
> property.
>
> We know the styles are added to 'style' attribute immediately on
> creation. Besides one can modify any attribute's value via the XML
> editor after altering the values in its right panel and clicking the
> 'Set' button. The modified value is saved and reflected in the
> drawing. And on opening the file in text editor, everything is
> alright.
Correct
> Next I merge the styles of the object via 'Stylesheet' in Extensions
> to a stylesheet, save it and open it in text editor, same attributes
> and values are saved in <style>.....</style> tags.
Yes.
> But now when I modify any attribute's value in XML editor, 'style'
> attribute and drawing are working right but the values are not
> updated
> in the stylesheet. Is this what I have to fix to track the source of
> values?
Basically, yes. Relying on an extension to create and manage style
sheets is not a good idea. It is very limiting as to what can be done
and it requires manual intervention.
The current implementation that writes styles to the saved svg file,
is it all implemented in style-internal.h? Numerous flags have been
used with different combinations. I have been able to understand a
small portion of the workflow.
It would be helpful if you point me in some direction so that I can
proceed further quickly.
--
Kamalpreet Kaur Grewal
Blog:
http://kamalpreetgrewal.com/