presentation attributes

Bug #171503 reported by Chris-lilley
2
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Wishlist
Unassigned

Bug Description

SVG allows either presentation attributes or style
sheets (which includes external style sheets,internal
style elements and style attributes). SVG Tiny only
allows presentation attributes. It would be good if
Inkscape offered an export option with presentation
attributes.

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

RFE 1489414 - Implement SVG Tiny profile

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

Normally i'd close a request like this as it is covered by
SVG Tiny. in this case it might be useful to break things
down into smaller tasks to encourage those who are
interested to tackle even a small part of the problem that
might help those who need SVG tiny get work done. (Others
might close this as a duplicate though.)

Thanks for your feedback.

Revision history for this message
Chris-lilley (chris-lilley) wrote :

I agree that implementing SVG Tiny would also produce an
export with presentation attributes.

However, they are not identical features. SVG Full can also
use presentation attributes; and some content creators might
prefer to use them for Full, either for better interop, or
because they plan to add styling later.

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

discussion about styles and presentation attributes on the
inkscape developer mailing list
https://sourceforge.net/mailarchive/message.php?msg_id=36789236

Revision history for this message
Anneumann (anneumann) wrote :

Originator: NO

I agree that presentation attributes are very useful. I'd prefer to have a
preference setting that allows to toggle between presentation attributes or
style elements. If one uses scripts, which is a very common use case in
SVG, presentation attributes are much easier to process. This has nothing
to do with SVG tiny, but is useful for the SVG full profile as well.

In fact, the style attribute has no advantage at all. It doesn't support
centralized formats and isn't easy to process. The two other ways, CSS
classes or presentation attributes, have their distinct advantages, but
style hasn't.

So I really think that the possibility to use presentation attributes
instead of the style attribute should also be available for the full
profile, not only for tiny.

Ryan Lerch (ryanlerch)
Changed in inkscape:
importance: Medium → Wishlist
status: New → Confirmed
su_v (suv-lp)
tags: added: svg
Revision history for this message
su_v (suv-lp) wrote :

Related:
Bug #168406 “Replace single style attribute with individual attributes?”

Note:
The Optimized SVG export format, based on Scour and added in version 0.47, has an option that allows to convert styles into XML attributes.
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/File-Export.html#File-Export-SVG>
<http://www.codedread.com/scour/#options>

Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

Closing as part of Inkscape's bug migration, since this was implemented by using Scour for SVG cleaning a loong time ago.

Closed by: https://gitlab.com/jhofinger

Changed in inkscape:
status: Confirmed → Invalid
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.