- From: Juergen Roethig <roethig@dhbw-karlsruhe.de>
- Date: Tue, 24 Jun 2014 18:25:51 +0200
- To: <www-svg@w3.org>
Hello world,
Dr. Olaf Hoffmann wrote:
> [...]
> Therefore clearly one should not promote to use the style attribute
> at all or something like this with similar high specifity/priority.
> Instead it is important to explain authors, that they always have to
> clean up files produced by programs like inkscape to get rid of
> style attributes in published documents.
I would never promote using a style attribute in any SVG file - I would
love to use the specific presentation attribute for specific design, and
leave the global design (e.g. have all the strokes with color black and
width 1px unless otherwise noted) to rules in external CSS files. But
actually, if I want to override such a global statement for just one
single object within the code, I must use the attribute "style" for that
- no other way if have the same property with another value applicable
for that specific object (and lots of other objects for which the rule
is intended) in my external CSS file! And now, this is even true for
specifications made via transform - all specific transformations get
overriden by a simple CSS rule "* { transform: translate(1px,1px);}" (or
similar) in a referenced external CSS file.
Regards,
Juergen Roethig
Received on Tuesday, 24 June 2014 16:26:32 UTC