Comment 1 for bug 170246

Revision history for this message
Bug Importer (bug-importer) wrote :

CSS support would be good.

I'm just doing a simple map and it would be useful to assign
a class attribute to all the building, all the roads etc.
Then I could easily change the colour of all the buildings
at once, or make them invisible etc. It would also make file
sizes smaller.

I would think that very basic CSS support would be fairly
straightforward to implement: when you render an object, use
the styles from the external style definition if one exists,
as well as from the style specific to that object.

Of course the complications would start once you get to the
cascading bit; working out what has preference over others etc.

Also there seems to be a few different ways of specifying
CSS styles, see here for example:
http://www.carto.net/papers/svg/samples/styles.shtml

Anyway Inkscape is looking very impressive already!