Cascading Style Sheets (CSS) Support

Bug #170246 reported by Rickbeton
This bug report is a duplicate of:  Bug #167936: No External CSS File Support. Edit Remove
2
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

To be a complete SVG editor, Inkscape needs to include
CSS support. CSS is especially important for:

* color selection [see also RFE924655]

* stroke and fill properties

* text/font properties

Also, SVG has many other properties controllable by CSS.

Rick :-)

Tags: css styles
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!

Revision history for this message
Horkana-users (horkana-users) wrote :

See also
https://sourceforge.net/tracker/index.php?func=detail&aid=955788&group_id=93438&atid=604309
includes SVG attachment that contains CSS and Inkscape
cannot render.

changed summary to make it easier to find when searching

Revision history for this message
Bryce Harrington (bryce) wrote :

See the CSS Support page in Wiki for additional information
on our progress with this one.

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Read-only CSS support is done in 0.42 via libcroco. We also
need a spport for defining and applying named styles, but
that's an entirely different area.

su_v (suv-lp)
tags: added: css styles
removed: other
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.