On 10/4/07, Chris Lilley <chris@...157...> wrote:
SVG Tiny 1.1, and SVG Tiny 1.2, don't use CSS selectors and don't support the style attribute, style element, or external style sheets. Instead they use presentational attributes. So an SVG Tiny file can share gradients.
However.
From an authoring perspective, there is nothing wrong with creating named, shared styles, and then (at save/export time) choosing between exporting them as CSS or as presentational attributes, just like one chooses between pure SVG and inkscape-roundtrippable SVG now.
Exactly. That's how I envisioned this. There's absolutely no need to cripple our internal representation or utilize redundant SVG tricks when we can just use CSS add an SVG Tiny export filter.
(An option to use presentational attributes would make inkscape usable for mobile web development, and I would strongly encourage adding that feature. Since inkscape doesn't seem to use any tricksy features of the style attribute like repeated property assignments, mixing shorthand and non-shorthand versions of the same property, inline comments, etc it should be straightforward).
I think I even had an XSLT stylesheet for breaking style= attributes to presentation attributes. Now that we support XSLT extensions, I'll look into adding it into Inkscape.