W3C home > Mailing lists > Public > www-svg@w3.org > August 2000

relationships between SVG and CSS2, SMIL etc

From: Tobias Reif <tobiasreif@yahoo.com>
Date: Wed, 9 Aug 2000 07:28:09 -0700 (PDT)
Message-ID: <20000809142809.29354.qmail@web4805.mail.yahoo.com>
To: www-svg@w3.org
Hi!

What are the relationships between SVG, CSS,
SMIL-animation?

First, I thought that SVG incorporates existing
features of CSS and SMIL-animation
(http://www.w3.org/TR/smil-animation/
or
http://www.w3.org/TR/smil-boston/smil-boston-animation.html
?)
so that conforming SVG-viewers are required to support
them, but don't have to support *all* features of the
two specs.

But I can't find any of the following properties in
the CSS-spec:
fill, opacity, lighting-color
but listed are:
clip, overflow etc.
(these are some of the features described on
http://www.w3.org/TR/SVG/styling.html)

This is a snippet of code from an SVG of mine:
[
<text x="280" y="140"
 style="opacity:0;font:4em
square,arial,sans-serif;fill:#f66">
  <set attributeName="opacity" attributType="CSS" 
  to="0.8" fill="freeze"
  begin="8s" dur="2s" />
click to go to pinkjuice&#46;com
</text>
]
If this is legal, well-formed and valid, I don't
understand the following:
[
attributeName="opacity" attributType="CSS"
]
says that "opacity" is a CSS-attribute; but I can not
find it in 
"Appendix F. Property index" of CSS2
http://www.w3.org/TR/CSS2/propidx.html

Also:
if a browser supports SVG, SMIL and CSS, could I use
all CSS-features(properties and values) in the
"style"-attribute of SVG?
Would I have to declare the namespace for the
SMIL-animation-features that are not in SVG?

Or did I get all that wrong.
I really would appreciate clarifying explanations.

=====
Tobias Reif  http://www.pinkjuice.com/svg/  http://www.pinkjuice.com/
       _/  /      
     /    /    _   /   _  /   _  /  /   /   _  /   _  /   _  /
     _/  /    /   /  /   /  /   /  /   /  /   /  /   /  /   /
   /   _ _/ _ _ _/   _ _/   _ _/ _ _  /   _ _/   _ _/   _ _/
 _/                /      /     _ _ _/  /             /

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
Received on Wednesday, 9 August 2000 10:28:44 GMT

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