request: set CSS class in object properties?

Bug #720809 reported by Pete-alex-harris
This bug report is a duplicate of:  Bug #171079: Settable class= in Object Properties. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

I'd like to be able to set the "class" attribute on an object (maybe in the object properties dialog), for use in re-styling SVG files using a stylesheet.

Inkscape preserves <style> tags in the file and preserves class attributes on elements, and it even uses them correctly to calculate colours of the objects. All that is lacking is a way to edit the class attribute of an element.

Plus I suppose I'd like to be able to add external stylesheets in the document properties, in the same way as external scripts can be added now.

Tags: css ui
Revision history for this message
Pete-alex-harris (pete-alex-harris) wrote :

On second thoughts: never mind. The built-in XML editor is sufficiently good for this purpose that there's no point in adding more specialised UI stuff to do the same thing. Sorry for not investigating my options thoroughly enough before posting a feature request!

Revision history for this message
su_v (suv-lp) wrote :

> Inkscape preserves <style> tags in the file and preserves
> class attributes on elements

Note that Bug #419266 “class attribute not saved in plain svg” <https://bugs.launchpad.net/inkscape/+bug/419266> is not yet fixed - the class attributes are only preserved as along as you save as Inkscape SVG.

Possibly also of interest:
Bug #167937 “CSS definitions being persisted in style attributes” has a small extension attached to "to clean style attributes from nodes that have a class attribute" (untested).

> be able to set the "class" attribute on an object (maybe in the
> object properties dialog)

A similar feature request has been filed earlier - linking this report as duplicate to
Bug #171079 “Settable class= in Object Properties”
<https://bugs.launchpad.net/inkscape/+bug/171079>

Please add a comment here and revert the duplicate status if you don't agree and think these are different issues.

tags: added: css ui
Changed in inkscape:
importance: Undecided → Wishlist
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.