W3C home > Mailing lists > Public > www-svg@w3.org > February 2007

Re: specificity, user style sheets and SVG

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Sat, 10 Feb 2007 15:11:34 +0100
To: www-svg@w3.org
Message-Id: <200702101511.34373.Dr.O.Hoffmann@gmx.de>

Hello,

I think, authors can already help users of less advanced
user agents with constructions like these:

<?xml-stylesheet href="AuthorStyle1.css" type="text/css" title="Style 1"?>
<?xml-stylesheet href="AuthorStyle2.css" type="text/css" title="Style 2"
   alternate="yes"?>
<?xml-stylesheet href="no.css" type="text/css" title="No Style"  
   alternate="yes" ?>

If no.css is empty and the user agent is able to switch between styles,
the user can choose 'No Style' and in this case there is no overwrite
problem between author style and user style. Even if the user agent
provides no possibility to switch off the author style completely, it is
possible to use a simple user style together with the alternate 'No Style'.
The other benefit for the author is, that it is immediately possible to check, 
what is really content and what decoration - if the 'No Style' choose
is not really usable, it might be better to use XML presentation 
attributes as CSS properties ;o)

A bigger problem is animation of the CSS attributeType. Because these 
elements are always inside the document and cannot be replaced by the
user, this will result in complicated situations with specifity. And because
the default is auto, this means CSS if possible, we get in complicated
situations with animation and CSS, too. Again authors have in most
cases the choice to specify the attributeType XML to simplify to overwrite
animations with (static!) CSS with a user style.
Received on Saturday, 10 February 2007 14:23:56 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:36 GMT